Skip to content

DOC: fix Sphinx parallel build error caused for doc/source/getting_started/intro_tutorials/04_plotting.rst #53788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/source/getting_started/intro_tutorials/04_plotting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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)
Expand Down Expand Up @@ -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()
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -200,6 +206,7 @@ I want to further customize, extend or save the resulting plot.

.. ipython:: python
:suppress:
:okwarning:

import os

Expand Down