Skip to content

Commit 365c35f

Browse files
committed
fix add_trace! method, closes #407
1 parent acba7d1 commit 365c35f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/display.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
function Base.show(io::IO, mm::MIME"text/html", p::SyncPlot)
1717
# if we are rendering docs -- short circuit and display html
1818
if get_renderer() == DOCS
19-
return show(io, mm, p.plot, full_html=false, include_plotlyjs="require-loaded")
19+
return show(io, mm, p.plot, full_html=false, include_plotlyjs="require")
2020
end
2121
show(io, mm, p.scope)
2222
end
@@ -184,7 +184,7 @@ end
184184

185185
function add_trace!(p::SyncPlot, trace::GenericTrace; kw...)
186186
add_trace!(p.plot, trace; kw...)
187-
addtraces!(p, trace)
187+
send_command(p.scope, :addTraces, trace)
188188
end
189189

190190

0 commit comments

Comments
 (0)