
Originally Posted by
bp023
Hey all,
I have a script written to predict elevation in two loops. One ("small loop") calculates elevation over fifty timesteps, and creates records of all the necessary data (elevation, etc.). The second ("large loop") contains the small loop, runs twenty times, and plots the records after each set of 50 iterations of the small loop. The large loop wipes the records clean at the beginning of each of its 20 iterations, and creates new, empty records and defines all the relavent variables before the small loop starts.
The script works fine, I get 20 unique elevation records of 50 timesteps each, but the plot only ever records two records at a time, and then it wipes itself clean and plots the next two, before wiping itself clean again (i.e. it plots iterations 1 and 2 of the large loop, then iterations 3 and 4, 5 and 6, and so on, but never more than two at once). I've checked my hold on command, and it seems to be placed properly -- I have one at the end of the plotting commands, which are in the large loop, but after the small loop.
So basically I need to figure out why it won't plot more than two lines at once, and then to figure out how to plot all twenty lines on the same plot.
Help would be appreciated!
Thanks in advance,
-Brad