Skip to content

Commit 7f04720

Browse files
committed
DOC: Added plt.show() at the end of each necessary block (pandas-dev#45772)
Reworded and moved title to the top of the page
1 parent ffc9778 commit 7f04720

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/source/getting_started/intro_tutorials/04_plotting.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,20 @@ Some more formatting options are explained in the user guide section on :ref:`pl
188188
I want to further customize, extend or save the resulting plot.
189189

190190
.. ipython::
191+
191192
@savefig 04_airqual_customized.png
192193
In [1]: fig, axs = plt.subplots(figsize=(12, 4))
193194
...: air_quality.plot.area(ax=axs)
194195
...: axs.set_ylabel("NO$_2$ concentration")
195196
...: fig.savefig("no2_concentrations.png")
196197
...: plt.show()
197198

199+
.. ipython:: python
200+
:suppress:
201+
202+
import os
203+
os.remove("no2_concentrations.png")
204+
198205
.. raw:: html
199206

200207
</li>

0 commit comments

Comments
 (0)