This fixes the colourbar shown when plotting filled contours for a convection map. Previously, the alpha value of the contours were not carried over to the colourbar because a whole new mappable object was being made for the colourmap of choice. This PR simply uses the output from plt.contourf() when making the colourbar so that the alpha is retained.
Scope
This fixes the colourbar shown when plotting filled contours for a convection map. Previously, the alpha value of the contours were not carried over to the colourbar because a whole new
mappable
object was being made for the colourmap of choice. This PR simply uses the output fromplt.contourf()
when making the colourbar so that the alpha is retained.Current behaviour:
Fixed behaviour:
Approval
2
Test