Skip to content

Revert backport of #21631 to v3.5.0-doc #21824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ per-file-ignores =
tutorials/colors/colormap-manipulation.py: E402
tutorials/intermediate/artists.py: E402
tutorials/intermediate/constrainedlayout_guide.py: E402
tutorials/intermediate/gridspec.py: E402
tutorials/intermediate/legend_guide.py: E402
tutorials/intermediate/tight_layout_guide.py: E402
tutorials/introductory/customizing.py: E501
Expand Down
3 changes: 1 addition & 2 deletions doc/users/prev_whats_new/whats_new_1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ Sophisticated subplot grid layout

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

.. figure:: ../../gallery/userdemo/images/sphx_glr_demo_gridspec01_001.png
:target: ../../gallery/userdemo/demo_gridspec01.html
Expand Down
4 changes: 2 additions & 2 deletions examples/lines_bars_and_markers/scatter_hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def scatter_hist(x, y, ax, ax_histx, ax_histy):
# ----------------
#
# We may equally define a gridspec with unequal width- and height-ratios to
# achieve desired layout. Also see the
# :doc:`/tutorials/intermediate/arranging_axes` tutorial.
# achieve desired layout. Also see the :doc:`/tutorials/intermediate/gridspec`
# tutorial.

# start with a square Figure
fig = plt.figure(figsize=(8, 8))
Expand Down
5 changes: 1 addition & 4 deletions examples/subplots_axes_and_figures/gridspec_and_subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
and then remove the covered axes and fill the gap with a new bigger axes.
Here we create a layout with the bottom two axes in the last column combined.

To start with this layout (rather than removing the overlapping axes) use
`~.pyplot.subplot_mosaic`.

See also :doc:`/tutorials/intermediate/arranging_axes`.
See also :doc:`/tutorials/intermediate/gridspec`.
"""

import matplotlib.pyplot as plt
Expand Down
6 changes: 2 additions & 4 deletions lib/matplotlib/gridspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
The `GridSpec` specifies the overall grid structure. Individual cells within
the grid are referenced by `SubplotSpec`\s.

Often, users need not access this module directly, and can use higher-level
methods like `~.pyplot.subplots`, `~.pyplot.subplot_mosaic` and
`~.Figure.subfigures`. See the tutorial
:doc:`/tutorials/intermediate/arranging_axes` for a guide.
See the tutorial :doc:`/tutorials/intermediate/gridspec` for a comprehensive
usage guide.
"""

import copy
Expand Down
Loading