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.26k stars 415 forks source link

Make skew-T special lines more automatic #112

Open dopplershift opened 8 years ago

dopplershift commented 8 years ago

It would be good for the special lines, especially the adiabats, to be more dynamic and properly respond to the plot bounds.

Ideally, these should be handled like gridlines. We would need to interpolate a line in plot coordinates [0, 1] and then do the proper transform and calculation to produce the adiabats. My only concern would be performance.

dopplershift commented 8 years ago

Another option would be to add an event handler listening for viewlim events and resetting the data for the special lines.

dopplershift commented 6 years ago

There may be a class in matplotlib that helps:

from mpl_toolkits.axisartist.grid_helper_curvelinear import GridHelperCurveLinear

Not sure if it's good idea or not to use this, but it might at least point the way.

dopplershift commented 6 years ago

To be more explicit, here is an example from Matplotlib's gallery showing how to use this stuff.

Might also be useful (as in the example) to better do Hodograph as the "polar but in a rectangular axes" shows.