Skip to content

Commit

Permalink
Fix for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jahn committed Apr 11, 2024
1 parent f9185cc commit b67bd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/python/MITgcmutils/MITgcmutils/cs/pcol.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def pcol( x, y, data, projection=None, vmin=None, vmax=None, **kwargs):
# add a reasonable colormap
m = cm.ScalarMappable(cmap=colmap)
m.set_array(data)
plt.colorbar(m)
plt.colorbar(m, ax=ax)
elif mapit == 0:
ax = fig.axes[-1]
ax.axis('image')
Expand Down

0 comments on commit b67bd52

Please sign in to comment.