(self, *, skip_non_rectangular_axes,
remove_inner_ticks=False)
| 5004 | self.xaxis.offsetText.set_visible(False) |
| 5005 | |
| 5006 | def _label_outer_yaxis(self, *, skip_non_rectangular_axes, |
| 5007 | remove_inner_ticks=False): |
| 5008 | # see documentation in label_outer. |
| 5009 | if skip_non_rectangular_axes and not isinstance(self.patch, |
| 5010 | mpl.patches.Rectangle): |
| 5011 | return |
| 5012 | ss = self._get_subplotspec_with_optional_colorbar() |
| 5013 | if ss is None: |
| 5014 | return |
| 5015 | label_position = self.yaxis.get_label_position() |
| 5016 | if not ss.is_first_col(): # Remove left label/ticklabels/offsettext. |
| 5017 | if label_position == "left": |
| 5018 | self.set_ylabel("") |
| 5019 | left_kw = {'left': False} if remove_inner_ticks else {} |
| 5020 | self.yaxis.set_tick_params( |
| 5021 | which="both", labelleft=False, **left_kw) |
| 5022 | if self.yaxis.offsetText.get_position()[0] == 0: |
| 5023 | self.yaxis.offsetText.set_visible(False) |
| 5024 | if not ss.is_last_col(): # Remove right label/ticklabels/offsettext. |
| 5025 | if label_position == "right": |
| 5026 | self.set_ylabel("") |
| 5027 | right_kw = {'right': False} if remove_inner_ticks else {} |
| 5028 | self.yaxis.set_tick_params( |
| 5029 | which="both", labelright=False, **right_kw) |
| 5030 | if self.yaxis.offsetText.get_position()[0] == 1: |
| 5031 | self.yaxis.offsetText.set_visible(False) |
| 5032 | |
| 5033 | def set_forward_navigation_events(self, forward): |
| 5034 | """ |
no test coverage detected