Open orena1 opened 4 years ago
Thanks for the bug report! Will transfer to the Kaleido repo :)
Thanks for the report @orena1.
Do you see the same behavior when you export the image by clicking on the camera icon in the toolbar of the HTML export? This will help us narrow down where the issue may be.
Also, it doesn't look like max_t
is defined in your code example. Could you update that to make sure the code snippet can be copied and run directly? Thanks!
Hi @jonmmease I've updated the code it is now self-contained.
Do you see the same behavior when you export the image by clicking on the camera icon in the toolbar of the HTML export? This will help us narrow down where the issue may be.
Very interesting, I've outputted the file to html (with the same dimensions) and when I try to save the html to png I get the same error.
I attached the files: drive-download-20200928T161933Z-001.zip
Thanks for checking @orena1. This actually does make sense because kaleido asks Plotly.js to export the figure to an image the same way the toolbar button does, so it will probably need to be fixed there. I'll try to reproduce in with Plotly.js directly and open an issue over there.
I have been having this issue as well, but the behavior is different between an image saved from the html tool and one directly saved with fig.write_image()
.
With write_image()
, if the layout width is small (2000) all traces get successfully saved to a .png
: narrow from write_image. If the layout width is larger (6000), they fail to save: wide from write_image
I can write_html
and save the wide format version just fine though: wide from write_html, which is slightly different than the issue described above.
plotly = "==5.4.0"
When saving a figure with a large width, the output of the figure just stops in the middle. When saving to HTML, it saved the full figure
here is a simple example:
plotly.version: 4.10.0
Thanks