Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88486b3

Browse files
committed
DOC: add more cross-ref and explanatory image [skip azp] [skip actions] [skip appveyor]
1 parent 081decd commit 88486b3

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed
File renamed without changes.

doc/users/explain/figures.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ themselves can have multiple Artists added to them
2727
Viewing Figures
2828
================
2929

30-
.. figure:: ./FigureTypes.png
30+
.. figure:: /_static/FigureTypes.png
3131
:alt: Image of figure generated in jupyter notebook with inline backend,
3232
notebook backend, and qt5Agg backend.
3333

@@ -52,9 +52,8 @@ by default trim or expand the figure size to have a tight box around Artists
5252
added to the Figure (see :ref:`saving_figures`, below). If you use one of the
5353
non-default backends you will likely need to use an ipython "magic" like
5454
``%matplotlib notebook`` for the Matplotlib
55-
:ref:`notebook <_jupyter_notebooks_jupyterlab>` or
56-
``%matplotlib widget`` for the `ipympl <https://matplotlib.org/ipympl/>`_
57-
backend.
55+
:ref:`notebook <jupyter_notebooks_jupyterlab>` or ``%matplotlib widget`` for
56+
the `ipympl <https://matplotlib.org/ipympl/>`_ backend.
5857

5958
.. seealso::
6059
:ref:`interactive_figures`.

tutorials/introductory/quick_start.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
ax.plot([1, 2, 3, 4], [1, 4, 2, 3]) # Plot some data on the axes.
3232

3333
# %%
34+
#
35+
# Note that to get this Figure to display, you may have to call ``plt.show()``,
36+
# depending on your backend. For more details of Figures and backends, see
37+
# :ref:`figure_explanation`.
38+
#
3439
# .. _figure_parts:
3540
#
3641
# Parts of a Figure
@@ -53,13 +58,16 @@
5358
# fig = plt.figure() # an empty figure with no Axes
5459
# fig, ax = plt.subplots() # a figure with a single Axes
5560
# fig, axs = plt.subplots(2, 2) # a figure with a 2x2 grid of Axes
61+
# # a figure with one axes on the left, and two on the right:
62+
# fig, axs = plt.subplot_mosaic([['left', 'right-top'],
63+
# ['left', 'right_bottom]])
5664
#
5765
# It is often convenient to create the Axes together with the Figure, but you
5866
# can also manually add Axes later on. Note that many
5967
# :doc:`Matplotlib backends </users/explain/backends>` support zooming and
6068
# panning on figure windows.
6169
#
62-
# For more on Figures, see :ref:` figure_explanation`.
70+
# For more on Figures, see :ref:`figure_explanation`.
6371
#
6472
# :class:`~matplotlib.axes.Axes`
6573
# ------------------------------

0 commit comments

Comments
 (0)