¡@

Home 

python Programming Glossary: plot1

Closing pyplot windows

http://stackoverflow.com/questions/11140787/closing-pyplot-windows

a range 0 10 b range 0 20 2 c range 0 30 3 d range 0 40 4 plot1 plt.figure plt.plot a b 'r o' plt.show plt.close plot2 plt.figure.. o' plt.show plt.close Edit Code This didn't work either. plot1 plt.figure 1 plt.plot a b 'r o' plot2 plt.figure 2 plt.plot.. 2 plt.plot c d 'b o' #plt.close 1 #this will prevent plot1 from being displayed plt.show plt.close 1 # or 'all' or plot1..

Matplotlib Legends not working

http://stackoverflow.com/questions/11983024/matplotlib-legends-not-working

import matplotlib.pyplot as plt a 1 2 3 b 4 5 6 c 7 8 9 plot1 plt.plot a b plot2 plt.plot a c plt.legend plot1 plot2 plot.. 6 c 7 8 9 plot1 plt.plot a b plot2 plt.plot a c plt.legend plot1 plot2 plot 1 plot 2 plt.show I've found the link that the error.. share improve this question You should add commas plot1 plt.plot a b plot2 plt.plot a c http matplotlib.sourceforge.net..