I would like to draw, for example. 10 lists, each list of which is represented by one curve and stored in a separate file, so nothing special.
The problem is that the constructed curves are not deleted after each iteration, so in each iteration / plot / file a new curve is simply added to the curves of previous iterations.
list1 = [...] ... list10 = [...] all_Lists = [list1, ..., list10] for i in range(10): pyplot.plot(all_Lists[i]) pyplot.savefig(...)
file1 has 1 curve / list1.
file2 has 2 curves / list 1 + list2. ...
I would understand if someone could explain how to get one curve per plot using the for-loop. Thanks!
source share