Skip to content

Image export ignores figure layout (using Kaleido) #2933

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

Closed
sergiocalde94 opened this issue Nov 24, 2020 · 2 comments
Closed

Image export ignores figure layout (using Kaleido) #2933

sergiocalde94 opened this issue Nov 24, 2020 · 2 comments

Comments

@sergiocalde94
Copy link

Hi!

Thank you very much for your awesome library 🥇

I am having some issues about figure sizing with svg render. I think a reproducible example is very visual:

With default render (plotly_mimetype+notebook) the layout correctly changes the figure size:

Screenshot 2020-11-24 at 19 01 40

But if I try it with svg render it ignores the layout 😢:

Screenshot 2020-11-24 at 19 02 51

Do you know how to avoid this problem? I need an uniform strategy, that with the same code returns same figure size, excepting the rendered type.

Thank you in advance 👍

@sergiocalde94
Copy link
Author

Update

Plotly version: 4.12.0

@nicolaskruchten
Copy link
Contributor

This is partly addressed in #3240 and will be part of version 5.0 ... if you don't specify a width, in Jupyter the plot will fill the window width, but when rendering with PNG you won't get the same width, you'll get the underlying default.

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

No branches or pull requests

2 participants