# Plot blurred (again) in VS Code with GR

**URL:** <https://discourse.julialang.org/t/plot-blurred-again-in-vs-code-with-gr/71546>\
**Category:** VS Code\
**Tags:** plotting, gr\
**Created:** [November 16, 2021, 10:58am UTC](https://discourse.julialang.org/t/plot-blurred-again-in-vs-code-with-gr/71546 "2021-11-16T10:58:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luboshanus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luboshanus/32/12163_2.png) [@luboshanus](https://discourse.julialang.org/u/luboshanus)\
**Post date:** [November 16, 2021, 10:58am UTC](https://discourse.julialang.org/t/plot-blurred-again-in-vs-code-with-gr/71546/1 "2021-11-16T10:58:37Z")

</div>

I have a problem with plots in VS Code. Plots are blurred and one cannot zoom in/out within it as it used to be.  
It saves the plot correctly into pdf.

Plots v1.23.1, v1.23.6.  
GR 0.61.0

 ![Screen Shot 2021-11-16 at 11.33.18](https://global.discourse-cdn.com/julialang/original/3X/3/5/35a789234decdef3a6f52d5ad1ce9fcdb2731546.jpeg)

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 16, 2021, 11:00am UTC](https://discourse.julialang.org/t/plot-blurred-again-in-vs-code-with-gr/71546/2 "2021-11-16T11:00:19Z")

</div>

See  
[https://github.com/julia-vscode/julia-vscode/issues/2561](https://github.com/julia-vscode/julia-vscode/issues/2561)

Also, panning/zooming now needs you to hold Alt/Option.

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [November 16, 2021, 12:13pm UTC](https://discourse.julialang.org/t/plot-blurred-again-in-vs-code-with-gr/71546/3 "2021-11-16T12:13:02Z")

</div>

I just tried `GR.jl/examples/covid19.ipynb` in VS Code and everything looks fine: I can pan, zoom in/out and hover over the points.

 ![covid19](https://global.discourse-cdn.com/julialang/original/3X/4/d/4d1a1cbccf2d7d5a35f4950ed2f6173d093d393c.png)

As you can see, the plot is displayed in Retina resolution.

---

<div class="post-metadata">

**Author:** ![luboshanus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luboshanus/32/12163_2.png) [@luboshanus](https://discourse.julialang.org/u/luboshanus)\
**Post date:** [November 16, 2021, 12:54pm UTC](https://discourse.julialang.org/t/plot-blurred-again-in-vs-code-with-gr/71546/4 "2021-11-16T12:54:18Z")

</div>

Isn’t this related to the setting SVG plotting in Jupyter,

 ![Screen Shot 2021-11-16 at 13.52.27](https://global.discourse-cdn.com/julialang/original/3X/3/3/33ffc0d0ed6b6465a64091c3350d84bb8a74c216.png)  
as also mentioned in the previous post.

If I use  
`display(VSCodeServer.InlineDisplay(), "image/svg+xml", my_plot)`  
I will get desired retina/not-blurred plot. However, defaults changes.

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [November 16, 2021, 1:50pm UTC](https://discourse.julialang.org/t/plot-blurred-again-in-vs-code-with-gr/71546/5 "2021-11-16T13:50:48Z")

</div>

The PDF plot (generated by GR) should have the same quality (if correctly rendered by VS Code). The internal resolution (in GR’s PDF output device) is \> 900dpi.
