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

Skip to content

Commit 5a84688

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 5a84688

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

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