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

Skip to content

Commit 896b78b

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 three examples are special enough so that we want to keep them until we have something better.
1 parent e7fd79f commit 896b78b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
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/subplot_and_figures/demo_gridspec03` is generally preferred.
9+
10+
.. redirect-from:: /gallery/userdemo/demo_gridspec01
911
"""
1012

1113
import matplotlib.pyplot as plt

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
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_gridspec06.py renamed to galleries/examples/subplots_axes_and_figures/demo_gridspec06.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
================
55
66
This example demonstrates the use of nested `.GridSpec`\s.
7+
8+
.. redirect-from:: /gallery/userdemo/demo_gridspec06
79
"""
810

911
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)
0