X-Git-Url: https://projects.mako.cc/source/matplotlib-cdsw/blobdiff_plain/224a19e5f73433a38828d6bd8a655fce7c220058..HEAD:/001-hello-plot.py?ds=sidebyside diff --git a/001-hello-plot.py b/001-hello-plot.py index ef749ff..882c22e 100644 --- a/001-hello-plot.py +++ b/001-hello-plot.py @@ -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() +