X-Git-Url: https://projects.mako.cc/source/matplotlib-cdsw/blobdiff_plain/224a19e5f73433a38828d6bd8a655fce7c220058..0a6b1b4db717da540e57c15eb7506d2d8f75da58:/001-hello-plot.py diff --git a/001-hello-plot.py b/001-hello-plot.py index ef749ff..227b56c 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) +figure, axis = plt.subplots(1) plt.plot([1,2,3], [1,2,3]) plt.show() +