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

Explicit specification of main panel size #740

Open
AlFontal opened this issue Jan 11, 2024 · 1 comment
Open

Explicit specification of main panel size #740

AlFontal opened this issue Jan 11, 2024 · 1 comment

Comments

@AlFontal
Copy link

Hi! I know that a few iterations ago the effect of the figure_size argument in theme changed a bit and now it directly specifies the width and height of the whole figure (including legends, axis text, title, etc.).

I was wondering whether there is any way via Plotnine's API or a more hacky way to directly control the size/aspect ratio of the main panels of a figure instead of the size of the whole figure, as sometimes I generate panels that I manually put together in Inkscape (I used to do it programmatically with patchworklib but it ends up being more of a hassle sometimes) and having them have equal size (or width/height) would really speed up the postprocessing for me.

Any ideas? Thanks!

@has2k1
Copy link
Owner

has2k1 commented Jan 11, 2024

Matplotlib makes doing that really hard, but I see why it would be valuable. I will have it at the back of my mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants