Skip to content
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

Issue on page /gallery/Panels/NCL_panel_15.html - Figure Size #633

Open
eroesler opened this issue Jan 6, 2025 · 1 comment
Open

Issue on page /gallery/Panels/NCL_panel_15.html - Figure Size #633

eroesler opened this issue Jan 6, 2025 · 1 comment
Assignees
Labels
support Support request opened by outside user/collaborator

Comments

@eroesler
Copy link

eroesler commented Jan 6, 2025

When specifying Figure Size,

fig = plt.figure(figsize=(8, 12))

If the arrangement of the panel plot figures changes to 2x2 or different from the default 3x1, the figure gets cut out if the final image is written to a postscript file, ignoring the specified width and height of the figsize specified at the beginning. How to preserve, scale, or change the figsize or postscript output writing as to not cut out the images?

@kafitzgerald kafitzgerald self-assigned this Jan 6, 2025
@kafitzgerald kafitzgerald added the support Support request opened by outside user/collaborator label Jan 6, 2025
@kafitzgerald
Copy link
Collaborator

If I recall correctly, there's some configuration in the NCL_panel_15.py example that's somewhat tied to the specified figure size / dimensions. You might take a look at the panel plots gallery for some examples of other configuration options / settings.

Matplotlib also has some nice examples of how to use GridSpec: https://matplotlib.org/stable/gallery/subplots_axes_and_figures/gridspec_multicolumn.html

Admittedly, this type of configuration is a bit tricky with some of the maps especially and some of the examples we have a bit verbose in trying to replicate NCL figures.

Let us know if you still have questions and/or suggestions for content or examples that might be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support request opened by outside user/collaborator
Projects
None yet
Development

No branches or pull requests

2 participants