From bbdf1dcc0e8d3ac9d0cd7b181a11ed56e09ee049 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 10 Apr 2020 16:04:17 +0200 Subject: [PATCH 1/2] fix axis agruments in PLOTS_DEFAULTS --- src/init.jl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/init.jl b/src/init.jl index c6213001..eb05ec71 100644 --- a/src/init.jl +++ b/src/init.jl @@ -3,7 +3,7 @@ using REPL function _plots_defaults() if isdefined(Main, :PLOTS_DEFAULTS) - Dict{Symbol,Any}(Main.PLOTS_DEFAULTS) + copy(Dict{Symbol,Any}(Main.PLOTS_DEFAULTS)) else Dict{Symbol,Any}() end @@ -13,11 +13,9 @@ end function __init__() user_defaults = _plots_defaults() if haskey(user_defaults, :theme) - theme(user_defaults[:theme]) - end - for (k,v) in user_defaults - k == :theme || default(k, v) + theme(pop!(user_defaults, :theme)) end + default(; user_defaults...) insert!(Base.Multimedia.displays, findlast(x -> x isa Base.TextDisplay || x isa REPL.REPLDisplay, Base.Multimedia.displays) + 1, PlotsDisplay()) From 345c3bc92820619eb1c2fd2da566516529fcf45c Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 10 Apr 2020 16:05:06 +0200 Subject: [PATCH 2/2] bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 608fe9e3..41c40181 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Plots" uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" author = ["Tom Breloff (@tbreloff)"] -version = "1.0.6" +version = "1.0.7" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"