Skip to content

Commit c401149

Browse files
authored
Merge pull request #29587 from meeseeksmachine/auto-backport-of-pr-25801-on-v3.10.x
Backport PR #25801 on branch v3.10.x (Remove some examples from Userdemo)
2 parents ca6b6f4 + a71b434 commit c401149

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

doc/users/prev_whats_new/whats_new_1.0.rst

+2-2
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
3333

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

+5-3
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

+7-4
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)