Blurred Plot in side panel

The plot inside vscode are blurred / fuzzy. If I take the documentation example:

using Plots
x = 1:10;
y = rand(10); # These are the plotting data 
plot(x, y, label = "my label")

I get the following print screen:

You can see that the numbers are blurred and the lines are fuzzy. Why I do not have the same quality of image as in the documentation ?


The versions:

  • Julia v1.6.4
  • vscode v1.62.3
  • julia-vscode v1.5.6
  • Plots v1.23.6
2 Likes

Hm, weird. Looks like the Plots/GR output isn’t using the right pixel density or something.

Try display("image/svg+xml", plot(x, y, label = "my label")) until someone figures out why this happens (or the Julia extension goes back to displaying plots as svg by default).

Thank you for the workaround, it is a bit annoying but it works.

I am having the same issue. When I plot with plotly or plotlyjs the graphs look normal. But when I plot with gr or pyplot the graphs look blurred on vs code. By the way, graphs are normal except for vs code.