Skip to content

Commit

Permalink
only rotate on non-colorbar labels
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Mar 6, 2024
1 parent 7055b6b commit 3c28433
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions aerosandbox/tools/pretty_plots/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,13 @@ def __call__(self):
if rotate_axis_labels:
for ax in axes:
if not ax_is_3d(ax):
ax.set_ylabel(
ax.get_ylabel(),
rotation=0,
ha="right",
va="center",
)
if not ax.get_label() == '<colorbar>':
ax.set_ylabel(
ax.get_ylabel(),
rotation=0,
ha="right",
va="center",
)

if title is not None:
if len(axes) > 1:
Expand Down

0 comments on commit 3c28433

Please sign in to comment.