I want to build data, then create a new shape and build data2, and finally return to the original plot and data3 plot, sort of like:
import numpy as np import matplotlib as plt x = arange(5) y = np.exp(5) plt.figure() plt.plot(x, y) z = np.sin(x) plt.figure() plt.plot(x, z) w = np.cos(x) plt.figure("""first figure""")
FYI How do I tell matplotlib that I ended up with a plot? does something like that, but not really! This does not allow me to access this original plot.
python matplotlib plot figure
Peter D Aug 02 '11 at 18:45 2011-08-02 18:45
source share