Skip to content

Commit cef9099

Browse files
committed
FIX
1 parent 439a025 commit cef9099

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class ColorbarAxes(Axes):
235235
Users should not normally instantiate this class, but it is the class
236236
returned by ``cbar = fig.colorbar(im); cax = cbar.ax``.
237237
"""
238-
def __init__(self, parent, userax=False):
238+
def __init__(self, parent, userax=True):
239239
"""
240240
Parameters
241241
----------

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def colorbar(self, mappable, cax=None, ax=None, use_gridspec=True, **kw):
11711171
NON_COLORBAR_KEYS = ['fraction', 'pad', 'shrink', 'aspect', 'anchor',
11721172
'panchor']
11731173
cb_kw = {k: v for k, v in kw.items() if k not in NON_COLORBAR_KEYS}
1174-
1174+
11751175
cb = cbar.Colorbar(cax, mappable, **cb_kw)
11761176

11771177
if not kw['userax']:

lib/mpl_toolkits/axes_grid1/axes_grid.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def colorbar(self, mappable, *, ticks=None, **kwargs):
3232
else:
3333
orientation = "vertical"
3434

35+
kwargs['userax'] = False
3536
cb = mpl.colorbar.Colorbar(
3637
self, mappable, orientation=orientation, ticks=ticks, **kwargs)
3738
self._cbid = mappable.colorbar_cid # deprecated in 3.3.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy