]> projects.mako.cc - matplotlib-cdsw/blobdiff - 001-hello-plot.py
merged in all the code from ariel's branches and moved wikibios to a subdir
[matplotlib-cdsw] / 001-hello-plot.py
index ef749ff3b65051599c94c03e816e2e80c9dfd600..882c22ec2f7102005c4f98d0a4a964226f51ea5c 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)
+axis.plot([1,2,3], [2,4,8])
 plt.show()
+

Benjamin Mako Hill || Want to submit a patch?