Hi, I’ve asked this as part of an earlier question, but no resolution yet.
In my program, I have this contour plot extracted from data after many hours of execution,
and I have to add new data on top of the contour plot (in the same window, on the same axes). So it was suggested I do this:
plot!(SavedContourPlot, (NewYdata, NewXdata))
and that works… BUT, it over-writes SavedContourPlot
, which ruins it, since I must use that original contour plot again later with other data, but cannot waste the time to re-calculate it. These commands also don’t help:
HoldTheOldPlot = SavedContourPlot
NewPlot = plot!(SavedContourPlot, (NewYdata, NewXdata)); display(NewPlot)
because now HoldTheOldPlot
, NewPlot
, and SavedContourPlot
ALL get changed in the same way, getting the new data added to the plots.
Is there any way that I can use the plot!
command in the way shown above, which adds the new data to the old plots in the way that I need it, but ALSO keep an unchanged copy of the old contour plot somehow? Thanks…!