Package specific question.
Package: PlotlyJS
Question:
Hi,
Is it possible, to plot multiple times in the same plot window?
Similar to the Plots-behaviour / GKS QtTerm.
Regards,
Stefan
Like this?
Thanks for the link! - Yes, I like it!
I spent maybe an our and interrogated some AIchatBOTs, -
up to now without success ![]()
What about this solution:
using PlotlyJS
x_vec = collect(0:0.1:10)
y_vec = rand.(length(x_vec))
trace_object = PlotlyJS.scatter(x = x_vec, y = y_vec,)
layout = PlotlyJS.Layout()
if !@isdefined(p) || p === nothing
global p = PlotlyJS.plot([trace_object], layout)
else
PlotlyJS.react!(p, [trace_object], layout)
end
1 Like