X-Git-Url: https://projects.mako.cc/source/matplotlib-cdsw/blobdiff_plain/224a19e5f73433a38828d6bd8a655fce7c220058..7bd9bbbbb11d7585b76e63e354c0c779d5a8c547:/001-hello-plot.py diff --git a/001-hello-plot.py b/001-hello-plot.py index ef749ff..0690470 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) +plt.plot([1,2,3], [2,4,8]) plt.show() +