Skip to content

Commit

Permalink
Correct axes loop
Browse files Browse the repository at this point in the history
  • Loading branch information
eachanjohnson committed Oct 5, 2024
1 parent 9e2db79 commit fdfa4f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions carabiner/mpl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ def grid(
sharey=sharey,
*args, **kwargs
)
all_axes = fig.axes
if sharex:
for ax in axes:
for ax in all_axes:
ax.xaxis.set_tick_params(labelbottom=True)
if sharey:
for ax in axes:
for ax in all_axes:
ax.yaxis.set_tick_params(labelleft=True)
return fig, axes

Expand Down

0 comments on commit fdfa4f3

Please sign in to comment.