File tree 2 files changed +13
-7
lines changed
examples/subplots_axes_and_figures
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 6
6
GridSpecs can be nested, so that a subplot from a parent GridSpec can
7
7
set the position for a nested grid of subplots.
8
8
9
+ Note that the same functionality can be achieved more directly with
10
+ `~.figure.PanelBase.subpanels`:
11
+ :doc:`nested gridspecs</gallery/subplots_axes_and_figures/subpanels>`,
12
+
9
13
"""
10
14
import matplotlib .pyplot as plt
11
15
import matplotlib .gridspec as gridspec
Original file line number Diff line number Diff line change 1
1
"""
2
2
================
3
- Nested Subpanels
3
+ Figure Subpanels
4
4
================
5
- Sometimes it is desirable to have a figure that has two different
6
- layouts in it. This can be achieved with
7
- :doc:`nested gridspecs</gallery/subplots_axes_and_figures/gridspec_nested>`
5
+ Sometimes it is desirable to have a figure with two different layouts in it.
6
+ This can be achieved with
7
+ :doc:`nested gridspecs</gallery/subplots_axes_and_figures/gridspec_nested>`,
8
8
but having a virtual figure with its own artists is helpful, so
9
- Matplotlib also has "subpanels", usually implimented by calling
10
- ``.figure.PanelBase.add_subpanel`` in a way that is analagous to
11
- ``.figure.PanelBase.add_subplot``.
9
+ Matplotlib also has "subpanels", accessed by calling
10
+ `.figure.PanelBase.add_subpanel` in a way that is analagous to
11
+ `.figure.PanelBase.add_subplot`, or `.figure.PanelBase.subpanels` to make
12
+ an array of subpanels. Note that subpanels can also have their own child
13
+ subpanels.
12
14
"""
13
15
import matplotlib .pyplot as plt
14
16
import numpy as np
You can’t perform that action at this time.
0 commit comments