# Plots are tiny

**URL:** https://discourse.julialang.org/t/plots-are-tiny/52184
**Category:** VS Code
**Created:** [December 21, 2020, 3:46pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184 "2020-12-21T15:46:55Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Peter\_Adelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peter_adelman/32/11907_2.png) [@Peter\_Adelman](https://discourse.julialang.org/u/Peter_Adelman)
#### Post date: [December 21, 2020, 3:46pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/1 "2020-12-21T15:46:55Z")

</div>

Within the last two months, my plots started rendering as tiny in VS Code.

If I set the default size as `(900,600)`, my plots are tiny:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/8/18ba267eb44b86c63754d86af9620c4d0f8a03f2.png)

if I change it to `(3600,2400)`, my plots get bigger:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/d/bdf347ebfd00fa87060feaf9833014eba595ae58.png)

VS Code correctly detects my screen resolution (1920,1080), but for some reason rendering (streaming?) this over ssh (CentOS7 with ENV\_GKS\_WS = 100) results in a way scaled down image. When I write the plot to disk as a PNG, it loads at the expected size.

VS Code Julia extension 1.0.10  
VS Code 1.52.1  
Julia 1.5.3

---

<div class="post-metadata">

### Author: ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)
#### Post date: [December 21, 2020, 5:15pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/2 "2020-12-21T17:15:58Z")

</div>

As a workaround the option `fmt=:png` might work. It worked for me when using Pluto.jl.

```julia
plot(rand(10),fmt=:png)

```

---

<div class="post-metadata">

### Author: ![Peter\_Adelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peter_adelman/32/11907_2.png) [@Peter\_Adelman](https://discourse.julialang.org/u/Peter_Adelman)
#### Post date: [December 21, 2020, 5:48pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/3 "2020-12-21T17:48:49Z")

</div>

> [@feanor12](#):
>
> As a workaround the option `fmt=:png` might work

Thanks for the suggestion, but this did not affect it.

---

<div class="post-metadata">

### Author: ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)
#### Post date: [December 21, 2020, 6:58pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/4 "2020-12-21T18:58:50Z")

</div>

Plots in the plot window are usually smaller. I believe there’s an icon that appears on hover which you can use to open the plot previews in a separate tab. That tab should allow for zooming in and usually renders at a higher resolution.

---

<div class="post-metadata">

### Author: ![Peter\_Adelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peter_adelman/32/11907_2.png) [@Peter\_Adelman](https://discourse.julialang.org/u/Peter_Adelman)
#### Post date: [December 21, 2020, 9:44pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/5 "2020-12-21T21:44:12Z")

</div>

I go through SSH (to a Julia dev environment container via the remote - containers addon), so it pops up in a separate tab all the time with no hover-over properties and used to default to full resolution.

It is interesting that the default behavior is thumbnail and probably hints to the cause of my problem.

---

<div class="post-metadata">

### Author: ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)
#### Post date: [December 21, 2020, 10:25pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/6 "2020-12-21T22:25:08Z")

</div>

That default behaviour only applies to the built-in plot pane IIRC. I’m not sure what’s going on if you have a separate window popping up.

---

<div class="post-metadata">

### Author: ![Peter\_Adelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peter_adelman/32/11907_2.png) [@Peter\_Adelman](https://discourse.julialang.org/u/Peter_Adelman)
#### Post date: [December 21, 2020, 10:27pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/7 "2020-12-21T22:27:02Z")

</div>

Sorry for being unclear. This is in the VS Code interface (not a separate window, just a separate tab) and it looks like this:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/3/2/3236f7b559b9c8d78d4a6ee8a716aff88ab77c4a.png)

---

<div class="post-metadata">

### Author: ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)
#### Post date: [December 21, 2020, 11:03pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/8 "2020-12-21T23:03:37Z")

</div>

Yup, that was what I was referring to (s/window/tab). Looks like either the hover functionality was removed or I was confusing it with the Python plots window. Either way, your best bet is probably to file an issue.

---

<div class="post-metadata">

### Author: ![Peter\_Adelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peter_adelman/32/11907_2.png) [@Peter\_Adelman](https://discourse.julialang.org/u/Peter_Adelman)
#### Post date: [December 22, 2020, 12:29pm UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/9 "2020-12-22T12:29:06Z")

</div>

Alright then, [ticket made](https://github.com/julia-vscode/julia-vscode/issues/1829). Thanks for the assistance with my strange problem!

---

<div class="post-metadata">

### Author: ![Steven\_Varga](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steven_varga/32/3529_2.png) [@Steven\_Varga](https://discourse.julialang.org/u/Steven_Varga)
#### Post date: [December 23, 2020, 4:24am UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/10 "2020-12-23T04:24:56Z")

</div>

For the record: [this post](https://github.com/julia-vscode/julia-vscode/issues/1829) lead to this [GR plot](https://github.com/JuliaPlots/Plots.jl/issues/3133) issue. Updating GR to `v0.53.0` fixed it for me. Thanks for the directions!

```julia
(@v1.5) pkg> add GR@0.53.0

```

---

<div class="post-metadata">

### Author: ![rmsmsgood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rmsmsgood/32/20544_2.png) [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)
#### Post date: [August 4, 2021, 4:22am UTC](https://discourse.julialang.org/t/plots-are-tiny/52184/11 "2021-08-04T04:22:30Z")

</div>

It works for me. Thank you!
