Saving a figure with given dimensions from a Pluto notebook using PlotlyJS

  • I’m trying to save a figure as a png file from a Pluto notebook.
  • The figure, a simple scatter plot, is rendered using the PlotlyJS backend, plotlyjs(), with a given size of, say, 800x300 px.
  • The figure is saved automatically, using Plots.savefig("test.png") command.
  • The size of the resulting png file, however, turns out to be 700x500px regardless the size of the figure in the notebook.
  • When the figure is saved manually, using Plotly’s menubar, the size specification is respected correctly.

Is there anything that can be done to mend the issue with the programmatic saving?