-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve SkewT layout examples #2460
Comments
It would be nice to view the Skewt temperature vs dewpoint with parcel profile on one side with a table of Metpy severe calculated indices on the other side in the same graphic like we see on other websites. Also have the ability to calculate severe indices based on current temperature and dewpoint not just morning values and use it to display current parcel profile. This is something that I do right now on my website. Just an idea. |
Hey @dopplershift! I'd like to contribute to this issue. I have several versions of sounding plots that have a more complex layout. Attached is an example. Is a super-simple version of something like this what you are looking for? |
@kylejgillett That would be great! I think the trick will be figuring out the balance of putting in a lot of the cool elements without making the example too complex to serve as an "example". But yes, that's definitely along the lines of what I'm looking for. |
@dopplershift, here is a mock idea of a more advanced/complex sounding viewer. It's based on the original example notebook and uses a few matplotlib, numpy, and metpy functions to increase readability and make it look a little cooler. What do you think of this? Too much, too little? Any ideas? |
I think that looks nice. The real decider on complexity, though, will be what code it takes to get that (though I'm guessing it's not too bad) |
Essentially I took the original "Skew-T with Complex Layout" notebook and added this to it:
|
I think that complexity is fine. I would replace the triple-quote strings with e.g.:
Those blocks get converted to text in the notebook/html blocks in the rendered examples. |
@dopplershift, ok, good idea! Should I open a pull request for this issue for the .py: https://github.com/Unidata/MetPy/blob/main/examples/plots/Skew-T_Layout.py? |
Since your example relies on some fixed boxes, I think it would be good to leave "Skew-T Layout" examples as is using GridSpec and add yours as a new example. |
Okay, nice. Is there anything I need to do to officially contribute this as a new example? |
If you add it in |
That can be fixed by using
fig = plt.figure(figsize=(12, 9))
(makes more room for the right sized skewT)'datalim'
and also uses some manual boxes withrect
. This example does that:gives:
but it would be nice to come up with something different, maybe multiple skew-T's or adding some other panels. Potential inspiration:
The text was updated successfully, but these errors were encountered: