Add another, more complicated plotting example.
[matplotlib-cdsw] / 001-hello-plot.py
index ef749ff3b65051599c94c03e816e2e80c9dfd600..227b56cdd079ce3caa21f19c87bb8096b71759da 100644 (file)
@@ -7,7 +7,7 @@ A first plot with matplotlib
 """
 
 import matplotlib.pyplot as plt 
 """
 
 import matplotlib.pyplot as plt 
-figure = plt.figure()
-axis = figure.add_subplot(111)
+figure, axis = plt.subplots(1)
 plt.plot([1,2,3], [1,2,3])
 plt.show()
 plt.plot([1,2,3], [1,2,3])
 plt.show()
+

Benjamin Mako Hill || Want to submit a patch?