Skip to content

Commit c74cf3a

Browse files
authored
DOC: add plt.show so that the plot will show, along with note about p… (pandas-dev#43544)
* DOC: add plt.show so that the plot will show, along with note about plt.show, plt.savefig and Jupyter Notebook. * DOC: add plt.show so that the plot will show, along with note about plt.show, plt.savefig and Jupyter Notebook.
1 parent 95a3b07 commit c74cf3a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/source/user_guide/10min.rst

+8
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,14 @@ The :meth:`~plt.close` method is used to `close <https://matplotlib.org/3.1.1/ap
733733
@savefig series_plot_basic.png
734734
ts.plot();
735735
736+
If running under Jupyter Notebook, the plot will appear on :meth:`~ts.plot`. Otherwise use
737+
`matplotlib.pyplot.show <https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.show.html>`__ to show it or
738+
`matplotlib.pyplot.savefig <https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.savefig.html>`__ to write it to a file.
739+
740+
.. ipython:: python
741+
742+
plt.show();
743+
736744
On a DataFrame, the :meth:`~DataFrame.plot` method is a convenience to plot all
737745
of the columns with labels:
738746

0 commit comments

Comments
 (0)