I just installed Ubuntu 20.04 on my work computer yesterday and have noticed that the colors in my Julia plots come out differently depending on whether I view them within VSCode/Jupyter, as a .png export, or as a .pdf export.
I’m not sure where in the stack the problem comes from, so I am posting here in hopes that someone has seen something similar. Is the issue most likely to be with Julia, Plots, Ubuntu, the Image Viewer Program in Ubuntu, my display configuration, or something else?
In my (limited) experience there are many things that have to go right before colors display correctly.
Here is some test code:
using Plots plot(rand(200), c=:dodgerblue) savefig("test.png") savefig("test.pdf")
The plot displayed in VSCode looks like this.
test.png displayed in Image Viewer looks like this.
test.pdf displayed in Document Viewer looks like this.
- Ubuntu version: 20.04
- Julia version: 1.6.2
- Plots version: 1.2.0
- VSCode version: 1.59.0
- Julia VSCode extension version: 1.3.27