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

Skip to content

Commit 3a02604

Browse files
committed
Revert backport of #21631 to v3.5.0-doc
This PR renames a tutorial, and thus needs to updtae a link in a .py file. Changes to .py files have no effect on the -doc branch, because it is run against the released version, so this breaks the build since the old link is gone. This reverts commit 37131e9.
1 parent f1dd94a commit 3a02604

File tree

9 files changed

+274
-396
lines changed

9 files changed

+274
-396
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ per-file-ignores =
9494
tutorials/colors/colormap-manipulation.py: E402
9595
tutorials/intermediate/artists.py: E402
9696
tutorials/intermediate/constrainedlayout_guide.py: E402
97+
tutorials/intermediate/gridspec.py: E402
9798
tutorials/intermediate/legend_guide.py: E402
9899
tutorials/intermediate/tight_layout_guide.py: E402
99100
tutorials/introductory/customizing.py: E501

doc/users/prev_whats_new/whats_new_1.0.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ Sophisticated subplot grid layout
2323

2424
Jae-Joon Lee has written :mod:`~matplotlib.gridspec`, a new module for
2525
doing complex subplot layouts, featuring row and column spans and
26-
more. See :doc:`/tutorials/intermediate/arranging_axes` for a tutorial
27-
overview.
26+
more. See :doc:`/tutorials/intermediate/gridspec` for a tutorial overview.
2827

2928
.. figure:: ../../gallery/userdemo/images/sphx_glr_demo_gridspec01_001.png
3029
:target: ../../gallery/userdemo/demo_gridspec01.html

examples/lines_bars_and_markers/scatter_hist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def scatter_hist(x, y, ax, ax_histx, ax_histy):
8888
# ----------------
8989
#
9090
# We may equally define a gridspec with unequal width- and height-ratios to
91-
# achieve desired layout. Also see the
92-
# :doc:`/tutorials/intermediate/arranging_axes` tutorial.
91+
# achieve desired layout. Also see the :doc:`/tutorials/intermediate/gridspec`
92+
# tutorial.
9393

9494
# start with a square Figure
9595
fig = plt.figure(figsize=(8, 8))

examples/subplots_axes_and_figures/gridspec_and_subplots.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
and then remove the covered axes and fill the gap with a new bigger axes.
99
Here we create a layout with the bottom two axes in the last column combined.
1010
11-
To start with this layout (rather than removing the overlapping axes) use
12-
`~.pyplot.subplot_mosaic`.
13-
14-
See also :doc:`/tutorials/intermediate/arranging_axes`.
11+
See also :doc:`/tutorials/intermediate/gridspec`.
1512
"""
1613

1714
import matplotlib.pyplot as plt

lib/matplotlib/gridspec.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
The `GridSpec` specifies the overall grid structure. Individual cells within
66
the grid are referenced by `SubplotSpec`\s.
77
8-
Often, users need not access this module directly, and can use higher-level
9-
methods like `~.pyplot.subplots`, `~.pyplot.subplot_mosaic` and
10-
`~.Figure.subfigures`. See the tutorial
11-
:doc:`/tutorials/intermediate/arranging_axes` for a guide.
8+
See the tutorial :doc:`/tutorials/intermediate/gridspec` for a comprehensive
9+
usage guide.
1210
"""
1311

1412
import copy

0 commit comments

Comments
 (0)