diff --git a/doc/source/getting_started/intro_tutorials/04_plotting.rst b/doc/source/getting_started/intro_tutorials/04_plotting.rst index ddc8a37911c98..e96eb7c51a12a 100644 --- a/doc/source/getting_started/intro_tutorials/04_plotting.rst +++ b/doc/source/getting_started/intro_tutorials/04_plotting.rst @@ -49,6 +49,7 @@ How do I create plots in pandas? I want a quick visual check of the data. .. ipython:: python + :okwarning: @savefig 04_airqual_quick.png air_quality.plot() @@ -78,6 +79,7 @@ I want to plot only the columns of the data table with the data from Paris. plt.clf() .. ipython:: python + :okwarning: @savefig 04_airqual_paris.png air_quality["station_paris"].plot() @@ -101,6 +103,7 @@ method. Hence, the :meth:`~DataFrame.plot` method works on both ``Series`` and I want to visually compare the :math:`NO_2` values measured in London versus Paris. .. ipython:: python + :okwarning: @savefig 04_airqual_scatter.png air_quality.plot.scatter(x="station_london", y="station_paris", alpha=0.5) @@ -133,6 +136,7 @@ One of the options is :meth:`DataFrame.plot.box`, which refers to a method is applicable on the air quality example data: .. ipython:: python + :okwarning: @savefig 04_airqual_boxplot.png air_quality.plot.box() @@ -157,6 +161,7 @@ For an introduction to plots other than the default line plot, see the user guid I want each of the columns in a separate subplot. .. ipython:: python + :okwarning: @savefig 04_airqual_area_subplot.png axs = air_quality.plot.area(figsize=(12, 4), subplots=True) @@ -190,6 +195,7 @@ Some more formatting options are explained in the user guide section on :ref:`pl I want to further customize, extend or save the resulting plot. .. ipython:: python + :okwarning: fig, axs = plt.subplots(figsize=(12, 4)) air_quality.plot.area(ax=axs) @@ -200,6 +206,7 @@ I want to further customize, extend or save the resulting plot. .. ipython:: python :suppress: + :okwarning: import os