29
29
30
30
_log = logging .getLogger (__name__ )
31
31
32
- _make_axes_param_doc = """
32
+ _make_axes_kw_doc = """
33
33
location : None or {'left', 'right', 'top', 'bottom'}
34
34
The location, relative to the parent axes, where the colorbar axes
35
35
is created. It also determines the *orientation* of the colorbar
47
47
Fraction by which to multiply the size of the colorbar.
48
48
aspect : float, default: 20
49
49
Ratio of long to short dimensions.
50
- """
51
- _make_axes_other_param_doc = """
52
50
pad : float, default: 0.05 if vertical, 0.15 if horizontal
53
51
Fraction of original axes between colorbar and new image axes.
54
52
anchor : (float, float), optional
161
159
Additional keyword arguments are of two kinds:
162
160
163
161
axes properties:
164
- %s
165
162
%s
166
163
colorbar properties:
167
164
%s
189
186
However this has negative consequences in other circumstances, e.g. with
190
187
semi-transparent images (alpha < 1) and colorbar extensions; therefore, this
191
188
workaround is not used by default (see issue #1188).
192
- """ % (textwrap .indent (_make_axes_param_doc , " " ),
193
- textwrap .indent (_make_axes_other_param_doc , " " ),
194
- _colormap_kw_doc ))
189
+ """ % (textwrap .indent (_make_axes_kw_doc , " " ), _colormap_kw_doc ))
195
190
196
191
197
192
def _set_ticks_on_axis_warn (* args , ** kwargs ):
@@ -1364,7 +1359,7 @@ def _normalize_location_orientation(location, orientation):
1364
1359
return loc_settings
1365
1360
1366
1361
1367
- @docstring .Substitution (_make_axes_param_doc , _make_axes_other_param_doc )
1362
+ @docstring .Substitution (_make_axes_kw_doc )
1368
1363
def make_axes (parents , location = None , orientation = None , fraction = 0.15 ,
1369
1364
shrink = 1.0 , aspect = 20 , ** kwargs ):
1370
1365
"""
@@ -1386,10 +1381,6 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15,
1386
1381
kwargs : dict
1387
1382
The reduced keyword dictionary to be passed when creating the colorbar
1388
1383
instance.
1389
-
1390
- Other Parameters
1391
- ----------------
1392
- %s
1393
1384
"""
1394
1385
loc_settings = _normalize_location_orientation (location , orientation )
1395
1386
# put appropriate values into the kwargs dict for passing back to
@@ -1470,7 +1461,7 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15,
1470
1461
return cax , kwargs
1471
1462
1472
1463
1473
- @docstring .Substitution (_make_axes_param_doc , _make_axes_other_param_doc )
1464
+ @docstring .Substitution (_make_axes_kw_doc )
1474
1465
def make_axes_gridspec (parent , * , location = None , orientation = None ,
1475
1466
fraction = 0.15 , shrink = 1.0 , aspect = 20 , ** kwargs ):
1476
1467
"""
@@ -1505,10 +1496,6 @@ def make_axes_gridspec(parent, *, location=None, orientation=None,
1505
1496
kwargs : dict
1506
1497
The reduced keyword dictionary to be passed when creating the colorbar
1507
1498
instance.
1508
-
1509
- Other Parameters
1510
- ----------------
1511
- %s
1512
1499
"""
1513
1500
1514
1501
loc_settings = _normalize_location_orientation (location , orientation )
0 commit comments