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

Skip to content

Commit 326ee42

Browse files
committed
Document that GridSpec.get_subplot_params ignores gridspec.figure.
It may not be the nicest API, but let's at least document it.
1 parent 5438e94 commit 326ee42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/gridspec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@ def get_subplot_params(self, figure=None):
418418
- non-*None* attributes of the GridSpec
419419
- the provided *figure*
420420
- :rc:`figure.subplot.*`
421+
422+
Note that the ``figure`` attribute of the GridSpec is always ignored.
421423
"""
422424
if figure is None:
423425
kw = {k: mpl.rcParams["figure.subplot."+k]

0 commit comments

Comments
 (0)