Merge pull request #2559 from daschw/gr-box
Fix axis arguments in PLOTS_DEFAULTS
This commit is contained in:
commit
908779f0c6
@ -1,7 +1,7 @@
|
|||||||
name = "Plots"
|
name = "Plots"
|
||||||
uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
|
uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
|
||||||
author = ["Tom Breloff (@tbreloff)"]
|
author = ["Tom Breloff (@tbreloff)"]
|
||||||
version = "1.0.6"
|
version = "1.0.7"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
||||||
|
|||||||
@ -3,7 +3,7 @@ using REPL
|
|||||||
|
|
||||||
function _plots_defaults()
|
function _plots_defaults()
|
||||||
if isdefined(Main, :PLOTS_DEFAULTS)
|
if isdefined(Main, :PLOTS_DEFAULTS)
|
||||||
Dict{Symbol,Any}(Main.PLOTS_DEFAULTS)
|
copy(Dict{Symbol,Any}(Main.PLOTS_DEFAULTS))
|
||||||
else
|
else
|
||||||
Dict{Symbol,Any}()
|
Dict{Symbol,Any}()
|
||||||
end
|
end
|
||||||
@ -13,11 +13,9 @@ end
|
|||||||
function __init__()
|
function __init__()
|
||||||
user_defaults = _plots_defaults()
|
user_defaults = _plots_defaults()
|
||||||
if haskey(user_defaults, :theme)
|
if haskey(user_defaults, :theme)
|
||||||
theme(user_defaults[:theme])
|
theme(pop!(user_defaults, :theme))
|
||||||
end
|
|
||||||
for (k,v) in user_defaults
|
|
||||||
k == :theme || default(k, v)
|
|
||||||
end
|
end
|
||||||
|
default(; user_defaults...)
|
||||||
|
|
||||||
insert!(Base.Multimedia.displays, findlast(x -> x isa Base.TextDisplay || x isa REPL.REPLDisplay, Base.Multimedia.displays) + 1, PlotsDisplay())
|
insert!(Base.Multimedia.displays, findlast(x -> x isa Base.TextDisplay || x isa REPL.REPLDisplay, Base.Multimedia.displays) + 1, PlotsDisplay())
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user