Plots.jl: Attributes from PLOTS_DEFAULTS dict are avoided

Created on 15 Aug 2018  路  6Comments  路  Source: JuliaPlots/Plots.jl

I'm trying to use PLOTS_DEFAULTS from startup.jl but it doesn't seems to work. It's called and the variables are set, but the plot command doesn't take them into account (I tried the startup.jl file with other commands and works fine). REPL gives with same results:

julia> PLOTS_DEFAULTS = Dict(:linewidth=>5)
Dict{Symbol,Int64} with 1 entry:
:linewidth => 5

Looks it worked but when plotting the line is still with linewidth = 1. Doing

using Plots
gr(linewidth=5)

works though. I'm on Julia 1.0 and Plots v0.19.2

bug priority

Most helpful comment

All 6 comments

Darn. Must be the startup.jl file is implemented differently on 0.7

Maybe I expressed myself incorrectly before, but calling PLOTS_DEFAULTS = Dict(...) from REPL also doesn鈥檛 work for me (neither from the startup.jl). So I guess is not just the startup file in this case, right?

huh

This is solved now for me. Maybe wanna close it. Thanks.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kersulis picture kersulis  路  5Comments

pkofod picture pkofod  路  3Comments

daschw picture daschw  路  3Comments

jebej picture jebej  路  4Comments

dancsi picture dancsi  路  4Comments