Skip to content

Commit 3a466d2

Browse files
committed
Capture mpl-native 'format' keyword passed to colorbar (fixes #262)
1 parent 90de22b commit 3a466d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

proplot/axes/plot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3691,7 +3691,7 @@ def colorbar_extras(
36913691
locator=None, ticks=None, maxn=None, maxn_minor=None,
36923692
minorlocator=None, minorticks=None,
36933693
locator_kw=None, minorlocator_kw=None,
3694-
formatter=None, ticklabels=None, formatter_kw=None, rotation=None,
3694+
format=None, formatter=None, ticklabels=None, formatter_kw=None, rotation=None,
36953695
norm=None, norm_kw=None, # normalizer to use when passing colors/lines
36963696
orientation=None,
36973697
edgecolor=None, linewidth=None,
@@ -3769,7 +3769,7 @@ def colorbar_extras(
37693769
consistency with `~matplotlib.axes.Axes.legend`.
37703770
locator, ticks : locator spec, optional
37713771
Used to determine the colorbar tick positions. Passed to the
3772-
`~proplot.constructor.Locator` constructor.
3772+
`~proplot.constructor.Locator` constructor function.
37733773
maxn : int, optional
37743774
Used if `locator` is ``None``. Determines the maximum number of levels
37753775
that are ticked. Default depends on the colorbar length relative
@@ -3779,9 +3779,9 @@ def colorbar_extras(
37793779
The locator settings. Passed to `~proplot.constructor.Locator`.
37803780
minorlocator, minorticks, maxn_minor, minorlocator_kw
37813781
As with `locator`, `maxn`, and `locator_kw`, but for the minor ticks.
3782-
formatter, ticklabels : formatter spec, optional
3782+
format, formatter, ticklabels : formatter spec, optional
37833783
The tick label format. Passed to the `~proplot.constructor.Formatter`
3784-
constructor.
3784+
constructor function.
37853785
formatter_kw : dict-like, optional
37863786
The formatter settings. Passed to `~proplot.constructor.Formatter`.
37873787
rotation : float, optional
@@ -3829,7 +3829,7 @@ def colorbar_extras(
38293829
minorlocator = _not_none(minorticks=minorticks, minorlocator=minorlocator)
38303830
ticklocation = _not_none(tickloc=tickloc, ticklocation=ticklocation)
38313831
tickdirection = _not_none(tickdir=tickdir, tickdirection=tickdirection)
3832-
formatter = _not_none(ticklabels=ticklabels, formatter=formatter)
3832+
formatter = _not_none(ticklabels=ticklabels, formatter=formatter, format=format)
38333833

38343834
# Colorbar kwargs
38353835
grid = _not_none(grid, rc['colorbar.grid'])

0 commit comments

Comments
 (0)