Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcef9099

Browse files
committed
FIX
1 parent439a025 commitcef9099

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:vfork,vinkw.items()ifknotinNON_COLORBAR_KEYS}
1174-
1174+
11751175
cb=cbar.Colorbar(cax,mappable,**cb_kw)
11761176

11771177
ifnotkw['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)

[8]ページ先頭

©2009-2025 Movatter.jp