SuperDARN / pydarn

Python library for visualizing SuperDARN Data
GNU Lesser General Public License v3.0
31 stars 11 forks source link

Fix colourbar alpha for filled potential contours #371

Closed billetd closed 7 months ago

billetd commented 7 months ago

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 from plt.contourf() when making the colourbar so that the alpha is retained.

Current behaviour:

Screenshot 2024-01-31 at 2 58 15 PM

Fixed behaviour:

Screenshot 2024-01-31 at 2 57 50 PM

Approval

2

Test