Skip to content

Commit

Permalink
Fix issue where on-the-fly colorbar labe is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Jun 14, 2020
1 parent 3a7e5a7 commit a642eee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions proplot/axes/plot.py
Expand Up @@ -3054,8 +3054,7 @@ def cmap_changer(
# Optionally add colorbar
if colorbar:
loc = self._loc_translate(colorbar, 'colorbar', allow_manual=False)
label = colorbar_kw.pop('label', None)
if label is None and autoformat:
if autoformat:
_, label = _axis_labels_title(Z_sample) # last one is data, we assume
if label:
colorbar_kw.setdefault('label', label)
Expand Down

0 comments on commit a642eee

Please sign in to comment.