(self, data, x, y, C=None, *, colorbar: bool = True, **kwargs)
| 1500 | return "hexbin" |
| 1501 | |
| 1502 | def __init__(self, data, x, y, C=None, *, colorbar: bool = True, **kwargs) -> None: |
| 1503 | super().__init__(data, x, y, **kwargs) |
| 1504 | if is_integer(C) and not holds_integer(self.data.columns): |
| 1505 | C = self.data.columns[C] |
| 1506 | self.C = C |
| 1507 | |
| 1508 | self.colorbar = colorbar |
| 1509 | |
| 1510 | # Scatter plot allows to plot objects data |
| 1511 | if len(self.data[self.x]._get_numeric_data()) == 0: |
| 1512 | raise ValueError(self._kind + " requires x column to be numeric") |
| 1513 | if len(self.data[self.y]._get_numeric_data()) == 0: |
| 1514 | raise ValueError(self._kind + " requires y column to be numeric") |
| 1515 | |
| 1516 | def _make_plot(self, fig: Figure) -> None: |
| 1517 | x, y, data, C = self.x, self.y, self.data, self.C |
nothing calls this directly
no test coverage detected