Skip to content

Commit 0a4ea41

Browse files
committed
avoid mutating defaults
1 parent ca5d718 commit 0a4ea41

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PlotlyLight"
22
uuid = "ca7969ec-10b3-423e-8d99-40f33abb42bf"
33
authors = ["joshday <emailjoshday@gmail.com>"]
4-
version = "0.4.3"
4+
version = "0.4.4"
55

66
[deps]
77
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"

src/PlotlyLight.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ end
106106
function Plot(traces, layout=Defaults.layout[], config=Defaults.config[]; kw...)
107107
data = traces isa Config ? [traces] : traces
108108
Plot(; kw..., data,
109-
layout = merge!(layout, Defaults.layout[]),
110-
config = merge!(config, Defaults.config[])
109+
layout = merge(layout, Defaults.layout[]),
110+
config = merge(config, Defaults.config[])
111111
)
112112
end
113113

0 commit comments

Comments
 (0)