NCAR / geocat-examples

GeoCAT-examples provides a gallery of visualization examples demonstrating how to reproduce plots from NCL Applications scripts with packages in Python. It also includes some longer form examples demonstrating how to use functionality from various GeoCAT packages.
https://geocat-examples.readthedocs.io
Apache License 2.0
66 stars 42 forks source link

Check some formatting issues on NCL_sat_3.py #566

Closed kafitzgerald closed 11 months ago

kafitzgerald commented 1 year ago

Describe the bug NCL_sat_3.py could use some attention.

https://geocat-examples.readthedocs.io/en/latest/gallery/MapProjections/NCL_sat_3.html

Expected behavior

Screenshots

Screen Shot 2023-11-15 at 2 05 55 PM
kafitzgerald commented 1 year ago

Sounds like this (the weird ticks on the colorbar) is a broader issue in chatting w/ Anissa. Might take a look a little sooner to better understand what's going on.

kafitzgerald commented 12 months ago

It looks like the contour plots now (not sure when this started) have minor ticks on the colorbars that align with the discrete colormap from the contouring.

It's not really clear to me why these examples plots are contoured in the first place and I think this problem really stems from us using some of the matplotlib functionality in a way it wasn't really intended, but 🤷🏻‍♀️.

These minor ticks can be turned off though so that's probably the easy fix for the colorbar tick issue. Unfortunately it doesn't appear to just be a parameter we can pass so it's a little more code.