This is a very small PR which fixes the behaviour of colourbars when making a convection map. Previously, setting colorbar=False when using plot_mapdata() would not work if contour_fill=True. This is because plot_potential_contours() uses a different keyword to control the colourbar for contours, and the one used in plot_mapdata() only controls the velocity colourbar.
This PR adds a second keyword to control the potential contour colourbar, contour_colorbar, which is set to False as default.
Scope
This is a very small PR which fixes the behaviour of colourbars when making a convection map. Previously, setting
colorbar=False
when usingplot_mapdata()
would not work ifcontour_fill=True
. This is becauseplot_potential_contours()
uses a different keyword to control the colourbar for contours, and the one used inplot_mapdata()
only controls the velocity colourbar.This PR adds a second keyword to control the potential contour colourbar,
contour_colorbar
, which is set to False as default.Approval
1
Test
Gives: