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

**URL:** <https://discourse.julialang.org/t/saving-a-figure-with-given-dimensions-from-a-pluto-notebook-using-plotlyjs/107107>\
**Category:** Pluto\
**Tags:** question, pluto, plotlyjs\
**Created:** [December 4, 2023, 11:24am UTC](https://discourse.julialang.org/t/saving-a-figure-with-given-dimensions-from-a-pluto-notebook-using-plotlyjs/107107 "2023-12-04T11:24:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvbond](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vvbond/32/10105_2.png) [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Post date:** [December 4, 2023, 11:24am UTC](https://discourse.julialang.org/t/saving-a-figure-with-given-dimensions-from-a-pluto-notebook-using-plotlyjs/107107/1 "2023-12-04T11:24:15Z")

</div>

- 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?
