Skip to content

Image export ignores figure layout (using Kaleido) #2933

Closed

Description

@sergiocalde94

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 👍

Activity

  1. sergiocalde94 commented on Nov 25, 2020

    @sergiocalde94
    Author

    Update

    Plotly version: 4.12.0

  2. nicolaskruchten commented on Jun 16, 2021

    @nicolaskruchten
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions