Open RoyiAvital opened 2 weeks ago
@RoyiAvital Yes, when you save a plot, set always width, height from layout or not, and scale=1. plotly.py saves a fig as an image of size (width, height) set in Layout, but unfortunately, PlotlyJS doesn't do it.
So maybe documentation should note that the output dimensions are set by a pre defined values and not by the p
provided.
Currently the documentation is ambiguous.
I create a simple graph with where I set the following layout:
When I save the figure, using
savefig(hP, "MyFile.png");
the output neither honor the layout aspect ratio nor the pixels dimension.Yet documentation says:
I'd assume it would take the values from layout.