2929
3030_log = logging .getLogger (__name__ )
3131
32- _make_axes_param_doc = """
32+ _make_axes_kw_doc = """
3333location : None or {'left', 'right', 'top', 'bottom'}
3434 The location, relative to the parent axes, where the colorbar axes
3535 is created. It also determines the *orientation* of the colorbar
4747 Fraction by which to multiply the size of the colorbar.
4848aspect : float, default: 20
4949 Ratio of long to short dimensions.
50- """
51- _make_axes_other_param_doc = """
5250pad : float, default: 0.05 if vertical, 0.15 if horizontal
5351 Fraction of original axes between colorbar and new image axes.
5452anchor : (float, float), optional
161159Additional keyword arguments are of two kinds:
162160
163161 axes properties:
164- %s
165162%s
166163 colorbar properties:
167164%s
189186However this has negative consequences in other circumstances, e.g. with
190187semi-transparent images (alpha < 1) and colorbar extensions; therefore, this
191188workaround 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 ))
195190
196191
197192def _set_ticks_on_axis_warn (* args , ** kwargs ):
@@ -1364,7 +1359,7 @@ def _normalize_location_orientation(location, orientation):
13641359 return loc_settings
13651360
13661361
1367- @docstring .Substitution (_make_axes_param_doc , _make_axes_other_param_doc )
1362+ @docstring .Substitution (_make_axes_kw_doc )
13681363def make_axes (parents , location = None , orientation = None , fraction = 0.15 ,
13691364 shrink = 1.0 , aspect = 20 , ** kwargs ):
13701365 """
@@ -1386,10 +1381,6 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15,
13861381 kwargs : dict
13871382 The reduced keyword dictionary to be passed when creating the colorbar
13881383 instance.
1389-
1390- Other Parameters
1391- ----------------
1392- %s
13931384 """
13941385 loc_settings = _normalize_location_orientation (location , orientation )
13951386 # 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,
14701461 return cax , kwargs
14711462
14721463
1473- @docstring .Substitution (_make_axes_param_doc , _make_axes_other_param_doc )
1464+ @docstring .Substitution (_make_axes_kw_doc )
14741465def make_axes_gridspec (parent , * , location = None , orientation = None ,
14751466 fraction = 0.15 , shrink = 1.0 , aspect = 20 , ** kwargs ):
14761467 """
@@ -1505,10 +1496,6 @@ def make_axes_gridspec(parent, *, location=None, orientation=None,
15051496 kwargs : dict
15061497 The reduced keyword dictionary to be passed when creating the colorbar
15071498 instance.
1508-
1509- Other Parameters
1510- ----------------
1511- %s
15121499 """
15131500
15141501 loc_settings = _normalize_location_orientation (location , orientation )
0 commit comments