Unidata / MetPy

MetPy is a collection of tools in Python for reading, visualizing and performing calculations with weather data.
https://unidata.github.io/MetPy/
BSD 3-Clause "New" or "Revised" License
1.24k stars 413 forks source link

Add declarative styles #1691

Open kgoebber opened 3 years ago

kgoebber commented 3 years ago

Currently the declarative syntax uses the default matplotlib style for creating maps with default settings, it would be nice if there were a couple of "styles" that could be easily implemented to give users some better variety. For example, there is a distinct NCL style that can be mimicked, likely through settings in the MapPanel that wouldn't be too hard to implement. Additionally, there are options within Matplotlib for Style Sheets (https://matplotlib.org/stable/tutorials/introductory/customizing.html?highlight=style%20sheets#using-style-sheets) that might be a good way to implement some additional style pieces that could aid MetPy users whether or not they use the declarative syntax.

mgrover1 commented 3 years ago

Maybe collaborating with the NCAR GeoCAT team would be helpful here? I know that they added style tools in the geocat-viz library, with an example of one of the plots here @erogluorhan

erogluorhan commented 3 years ago

@mgrover1

Thanks for bringing GeoCAT-viz into the conversation!

Yes, we have implemented GeoCAT-viz as a higher level layer to lower level matplotlib functions to mimic NCL-specific visualization capabilities. So far, it worked well in our GeoCAT plotting gallery. However, there could be much improvement to it.

We are happy to collaborate to provide improved capabilities, etc.