Use consistent API.
[matplotlib-cdsw] / 001-hello-plot.py
index 06904708e84e353b2a2366e5ba283685ed693375..882c22ec2f7102005c4f98d0a4a964226f51ea5c 100644 (file)
@@ -8,6 +8,6 @@ A first plot with matplotlib
 
 import matplotlib.pyplot as plt 
 figure, axis = plt.subplots(1)
-plt.plot([1,2,3], [2,4,8])
+axis.plot([1,2,3], [2,4,8])
 plt.show()
 

Benjamin Mako Hill || Want to submit a patch?