We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22be833 commit 6946afcCopy full SHA for 6946afc
src/PlotlyLight.jl
@@ -116,8 +116,8 @@ mutable struct Plot
116
117
function Plot(
118
data::Union{Config, Vector{Config}},
119
- layout::Config = Defaults.layout[],
120
- config::Config = Defaults.config[];
+ layout::Config = copy(Defaults.layout[]),
+ config::Config = copy(Defaults.config[]);
121
# kw
122
id::AbstractString = randstring(10),
123
js::Cobweb.Javascript = Cobweb.Javascript("console.log('plot created!')")
0 commit comments