MCPcopy
hub / github.com/pandas-dev/pandas / _get_ax

Method _get_ax

pandas/plotting/_matplotlib/core.py:1047–1060  ·  view source on GitHub ↗
(self, i: int)

Source from the content-addressed store, hash-verified

1045
1046 @final
1047 def _get_ax(self, i: int) -> Axes:
1048 # get the twinx ax if appropriate
1049 if self.subplots:
1050 i = self._col_idx_to_axis_idx(i)
1051 ax = self.axes[i]
1052 ax = self._maybe_right_yaxis(ax, i)
1053 # error: Unsupported target for indexed assignment ("Sequence[Any]")
1054 self.axes[i] = ax # type: ignore[index]
1055 else:
1056 ax = self.axes[0]
1057 ax = self._maybe_right_yaxis(ax, i)
1058
1059 ax.get_yaxis().set_visible(True)
1060 return ax
1061
1062 @final
1063 def on_right(self, i: int) -> bool:

Callers 7

_use_dynamic_xMethod · 0.95
_add_tableMethod · 0.95
_make_plotMethod · 0.80
_make_plotMethod · 0.80
_make_plotMethod · 0.80
_make_plotMethod · 0.80
_make_plotMethod · 0.80

Calls 2

_col_idx_to_axis_idxMethod · 0.95
_maybe_right_yaxisMethod · 0.95

Tested by

no test coverage detected