Skip to content

Commit

Permalink
Fix deprecation warning when checking axis location
Browse files Browse the repository at this point in the history
  • Loading branch information
lkluft committed May 19, 2021
1 parent efb9b02 commit 67e2987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typhon/plots/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def profile_p(p, x, ax=None, **kwargs):

# Label and format for yaxis.
formatter.set_yaxis_formatter(formatter.HectoPascalFormatter(), ax=ax)
if ax.is_first_col():
if ax.get_subplotspec().is_first_col():
ax.set_ylabel('Pressure [hPa]')

# Actual plot.
Expand Down

0 comments on commit 67e2987

Please sign in to comment.