# Plots figure size

**URL:** <https://discourse.julialang.org/t/plots-figure-size/37969>\
**Category:** VS Code\
**Tags:** visualization\
**Created:** [April 21, 2020, 3:02pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969 "2020-04-21T15:02:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonniedie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonniedie/32/12842_2.png) [@jonniedie](https://discourse.julialang.org/u/jonniedie)\
**Post date:** [April 21, 2020, 3:02pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/1 "2020-04-21T15:02:50Z")

</div>

I just switched from Juno/Atom to VSCode and my experience has been mostly great. The one issue I have is the plot figure is tiny no matter what size the Julia Plots window is. In Juno, plots automatically scale to the size of the window they are in on generation. Is there any way to do this in VSCode?

---

<div class="post-metadata">

**Author:** ![ArchieCall](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/archiecall/32/206_2.png) [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)\
**Post date:** [April 21, 2020, 3:56pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/2 "2020-04-21T15:56:47Z")

</div>

```julia
gr(size = (750, 565)) # use gr as the plot backend

```

Works for me in VSCode.

---

<div class="post-metadata">

**Author:** ![jonniedie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonniedie/32/12842_2.png) [@jonniedie](https://discourse.julialang.org/u/jonniedie)\
**Post date:** [April 21, 2020, 7:41pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/3 "2020-04-21T19:41:27Z")

</div>

Thanks. Kinda unfortunate that this can’t be automatic like in Juno (since I like to resize my windows often), but this will have to do.

---

<div class="post-metadata">

**Author:** ![airpmb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/airpmb/32/7826_2.png) [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Post date:** [March 27, 2021, 6:47pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/4 "2021-03-27T18:47:28Z")

</div>

Anyone know if there has been any progress on this? Or if not, an issue filed somewhere I can watch?

I wonder if it’s related to the long-outstanding [https://github.com/microsoft/vscode/issues/10121](https://github.com/microsoft/vscode/issues/10121) which is also unfortunate.

Or is there maybe a workaround that I’m not aware of, e.g. having plot windows open external to VS Code somehow?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [March 27, 2021, 7:15pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/5 "2021-03-27T19:15:33Z")

</div>

Not sure of understanding the meaning of your question: “_having plot windows open external to VS Code somehow?_”, but unchecking the VSCode setting herein sends plots to an external window:

 ![VSCode_Settings_Julia_Use_Plot_Pane](https://global.discourse-cdn.com/julialang/original/3X/7/d/7d40a3ee3513d4b9077f4dad4da17ad613d30d7f.png)

---

<div class="post-metadata">

**Author:** ![airpmb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/airpmb/32/7826_2.png) [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Post date:** [March 27, 2021, 8:41pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/6 "2021-03-27T20:41:13Z")

</div>

That’s in fact exactly what I mean… Unfortunately it doesn’t seem to work for me, or at least not with the PlotlyJS backend, which I prefer for its interactivity (and which does work inside of VS Code). But thanks for the reminder that that option is even there!

(Edit: Big Sur 11.2.3, Julia 1.6.0)

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [March 27, 2021, 9:44pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/7 "2021-03-27T21:44:22Z")

</div>

Plots’ plotlyjs() backend issues the Kaleido error message (_with a spelling typo too_):

```julia
julia> using Plots; plotlyjs()
Plots.PlotlyJSBackend()
julia> # ┌ Warning: Kaledio is not available on this system. Julia will be unable to produce any plots.
julia> # └ @ PlotlyBase C:\Users\jrafa\.julia\packages\PlotlyBase\NxSlF\src\kaleido.jl:58

```

This issue seems to be under investigation [here](https://discourse.julialang.org/t/kaleido-error-with-julia-1-6-the-artifact-seems-to-be-broken/).

---

<div class="post-metadata">

**Author:** ![airpmb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/airpmb/32/7826_2.png) [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Post date:** [March 27, 2021, 9:49pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/8 "2021-03-27T21:49:16Z")

</div>

Ok, I’m not seeing the connection to this issue though (or that error message)…?

---

<div class="post-metadata">

**Author:** ![peteole](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peteole/32/209790_2.png) [@peteole](https://discourse.julialang.org/u/peteole)\
**Post date:** [July 24, 2021, 3:19pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/9 "2021-07-24T15:19:26Z")

</div>

I just realized that while I have the same problem, the issue does not seem to lay in the resolution, but in the scaling: I can zoom into the plots and they look good, but the scale makes them absolutely tiny…

---

<div class="post-metadata">

**Author:** ![SuppenGeist](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@SuppenGeist](https://discourse.julialang.org/u/SuppenGeist)\
**Post date:** [July 28, 2021, 9:14pm UTC](https://discourse.julialang.org/t/plots-figure-size/37969/10 "2021-07-28T21:14:44Z")

</div>

I discovered that you can use the size=(x,y) parameter to increase the size of the graph. Works well together will the setting that the graphs are opened in a new window
