Skip to content

SkewT plot with additional panels using GridSpec #1640

Discussion options

You must be logged in to vote

I was able to achieve what I needed by leveraging the width_ratios parameter for GridSpec:
https://matplotlib.org/api/_as_gen/matplotlib.gridspec.GridSpec.html#matplotlib.gridspec.GridSpec

What it boils down to is the aspect ratio being applied to the SkewT plot. If you set this to 'auto', you don't need to set the width_ratios for GridSpec and everything aligns vertically. However the SkewT then looks terrible of course.

The easiest way to do this, is for each panel that is not the SkewT, initialize the ratio to 1. Then, for the SkewT panel start by setting the width ratio to something larger like 2 and adjust manually until you are able to get everything aligned. I was unable to figure …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dopplershift
Comment options

@Meteodan
Comment options

Answer selected by DanielAdriaansen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants