8000 Move gridspec examples from userdemo to subplots_anxes_and_figures · matplotlib/matplotlib@afc5b0b · GitHub
[go: up one dir, main page]

Skip to content

Commit afc5b0b

Browse files
committed
Move gridspec examples from userdemo to subplots_anxes_and_figures
While we should consolidate the examples for creating complex Axes layouts (or rather have a guide on this), that's beyond the scope of this PR. All these examples are special enough so that we want to keep them until we have something better.
1 parent f42d451 commit afc5b0b

File tree

3 files changed

+14
-9
lines changed
  • doc/users/prev_whats_new
  • galleries/examples/subplots_axes_and_figures
    • < 8000 div class="PRIVATE_TreeView-item-container prc-TreeView-TreeViewItemContainer--2Rkn" style="--level:2">
  • 3 files changed

    +14
    -9
    lines changed

    doc/users/prev_whats_new/whats_new_1.0.rst

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -26,8 +26,8 @@ doing complex subplot layouts, featuring row and column spans and
    2626
    more. See :ref:`arranging_axes` for a tutorial
    2727
    overview.
    2828

    29-
    .. figure:: ../../gallery/userdemo/images/sphx_glr_demo_gridspec01_001.png
    30-
    :target: ../../gallery/userdemo/demo_gridspec01.html
    29+
    .. figure:: ../../gallery/subplots_axes_and_figures/images/sphx_glr_subplot2grid_001.png
    30+
    :target: ../../gallery/subplots_axes_and_figures/subplot2grid.html
    3131
    :align: center
    3232
    :scale: 50
    8000 3333

    galleries/examples/userdemo/demo_gridspec03.py renamed to galleries/examples/subplots_axes_and_figures/gridspec_customization.py

    Lines changed: 5 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,13 +1,15 @@
    11
    """
    2-
    =============
    3-
    GridSpec demo
    4-
    =============
    2+
    ========================================
    3+
    GridSpec with variable sizes and spacing
    4+
    ========================================
    55
    66
    This example demonstrates the use of `.GridSpec` to generate subplots,
    77
    the control of the relative sizes of subplots with *width_ratios* and
    88
    *height_ratios*, and the control of the spacing around and between subplots
    99
    using subplot params (*left*, *right*, *bottom*, *top*, *wspace*, and
    1010
    *hspace*).
    11+
    12+
    .. redirect-from:: /gallery/userdemo/demo_gridspec03
    1113
    """
    1214

    1315
    import matplotlib.pyplot as plt

    galleries/examples/userdemo/demo_gridspec01.py renamed to galleries/examples/subplots_axes_and_figures/subplot2grid.py

    Lines changed: 7 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,11 +1,14 @@
    11
    """
    2-
    =================
    3-
    subplot2grid demo
    4-
    =================
    2+
    ============
    3+
    subplot2grid
    4+
    ============
    55
    66
    This example demonstrates the use of `.pyplot.subplot2grid` to generate
    77
    subplots. Using `.GridSpec`, as demonstrated in
    8-
    :doc:`/gallery/userdemo/demo_gridspec03` is generally preferred.
    8+
    :doc:`/gallery/subplots_axes_and_figures/gridspec_customization` is
    9+
    generally preferred.
    10+
    11+
    .. redirect-from:: /gallery/userdemo/demo_gridspec01
    912
    """
    1013

    1114
    import matplotlib.pyplot as plt

    0 commit comments

    Comments
     (0)
    0