MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / label_outer

Method label_outer

lib/matplotlib/axes/_base.py:4948–4966  ·  view source on GitHub ↗

Only show "outer" labels and tick labels. x-labels are only kept for subplots on the last row (or first row, if labels are on the top side); y-labels only for subplots on the first column (or last column, if labels are on the right side). Parameters

(self, remove_inner_ticks=False)

Source from the content-addressed store, hash-verified

4946 return cbook.GrouperView(cls._shared_axes["y"])
4947
4948 def label_outer(self, remove_inner_ticks=False):
4949 """
4950 Only show "outer" labels and tick labels.
4951
4952 x-labels are only kept for subplots on the last row (or first row, if
4953 labels are on the top side); y-labels only for subplots on the first
4954 column (or last column, if labels are on the right side).
4955
4956 Parameters
4957 ----------
4958 remove_inner_ticks : bool, default: False
4959 If True, remove the inner ticks as well (not only tick labels).
4960
4961 .. versionadded:: 3.8
4962 """
4963 self._label_outer_xaxis(skip_non_rectangular_axes=False,
4964 remove_inner_ticks=remove_inner_ticks)
4965 self._label_outer_yaxis(skip_non_rectangular_axes=False,
4966 remove_inner_ticks=remove_inner_ticks)
4967
4968 def _get_subplotspec_with_optional_colorbar(self):
4969 """

Callers 8

test_label_outerFunction · 0.80
test_label_outer_spanFunction · 0.80
adjust_spinesFunction · 0.80
subplots_demo.pyFile · 0.80

Calls 2

_label_outer_xaxisMethod · 0.95
_label_outer_yaxisMethod · 0.95

Tested by 4

test_label_outerFunction · 0.64
test_label_outer_spanFunction · 0.64