Add more examples from the HP data-set.
[matplotlib-cdsw] / 001-hello-plot.py
index ef749ff3b65051599c94c03e816e2e80c9dfd600..06904708e84e353b2a2366e5ba283685ed693375 100644 (file)
@@ -7,7 +7,7 @@ A first plot with matplotlib
 """
 
 import matplotlib.pyplot as plt 
-figure = plt.figure()
-axis = figure.add_subplot(111)
-plt.plot([1,2,3], [1,2,3])
+figure, axis = plt.subplots(1)
+plt.plot([1,2,3], [2,4,8])
 plt.show()
+

Benjamin Mako Hill || Want to submit a patch?