Skip to content

Commit

Permalink
AMD
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Jun 16, 2021
1 parent 1186d63 commit df0a708
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions eelbrain/plot/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1813,9 +1813,17 @@ def _configure_axis(
show_ticklabels = [ticklabels] * nax
elif isinstance(ticklabels, str):
if ticklabels == 'bottom':
show_ticklabels = [ax.get_subplotspec().is_last_row() for ax in axes]
if all(isinstance(ax, matplotlib.axes.SubplotBase) for ax in axes):
show_ticklabels = [ax.get_subplotspec().is_last_row() for ax in axes]
else:
first = len(axes) - min(self._layout.ncol, nax)
show_ticklabels = [i >= first for i in range(len(axes))]
elif ticklabels == 'left':
show_ticklabels = [ax.get_subplotspec().is_first_col() for ax in axes]
if all(isinstance(ax, matplotlib.axes.SubplotBase) for ax in axes):
show_ticklabels = [ax.get_subplotspec().is_first_col() for ax in axes]
else:
ncol = self._layout.ncol or nax
show_ticklabels = [i % ncol == 0 for i in range(len(axes))]
elif ticklabels == 'all':
show_ticklabels = [True] * nax
elif ticklabels == 'none':
Expand Down

0 comments on commit df0a708

Please sign in to comment.