Hi again good folks, I’ve got another question about something that seems simple, but I can’t figure out how to do it after much searching. I’m trying to have a delayed-effect version of what you normally get with commands like:
plot(stuff1...) plot!(stuff2...) plot!(stuff3...)
The problem is that each piece of data, “stuffN”, is calculated in a different branch of a
For loop, and each mass of data takes up too much RAM to hold them all in memory at the same time. All I can do is save the plots and try to put them together later, when the
For loop is done. So consider a situation where I’ve saved an array of plots…
plot1 = plot(stuff1...) plot2 = plot(stuff2...) plot3 = plot(stuff3...) #and so on... plotArray = [plot1, plot2, plot3, plot4, plot5, . . . ]
Then how to get all of these plots put together on the SAME axes, in the SAME plot?
Nothing works so far. Using
layout doesn’t work, because the plots are put on different axes in different picture blocks. Trying
display!(plot1, plot2, . . . ) produces an error. This also fails, because it doesn’t stop the screen from refreshing for each plot:
plot(plot1) plot!(plot2) # and so on...
Also, changing the above definitions to things like the commands below produces spurious plot-combination results, depending undesirably on the order in which they first appeared on the screen:
plot1 = plot(stuff1...) plot2 = plot!(stuff2...) plot3 = plot!(stuff3...) #and so on... plotArray = [plot1, plot2, plot3, plot4, plot5, . . . ]
Any ideas…? I’m fresh out.