Simplified way to save high-res plots in julia

Use the dpi keyword argument. 400-600 dpi is usually good for prints.

julia> plot(randn(10), dpi=10)
Plot{Plots.GRBackend() n=1}

julia> savefig("/tmp/10.png")
"/tmp/10.png"

julia> plot(randn(10), dpi=1000)
Plot{Plots.GRBackend() n=1}

julia> savefig("/tmp/1000.png")
"/tmp/1000.png"

10

10 Likes