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

Commitd41c0a8

Browse files
committed
MNT : remove set_colorbar from ScalarMappable
Deprecated inmatplotlib#2055 /148ed82
1 parentfcb167d commitd41c0a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎doc/api/api_changes/code_removal.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,8 @@ remove 'faceted' as a valid value for `shading` in ``tri.tripcolor``
5959
--------------------------------------------------------------------
6060
Use `edgecolor` instead. Added validation on ``shading`` to
6161
only be valid values.
62+
63+
64+
Remove ``set_colorbar`` method from ``ScalarMappable``
65+
------------------------------------------------------
66+
Remove ``set_colorbar`` method, use `colorbar` attribute directly.

‎lib/matplotlib/cm.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ def __init__(self, norm=None, cmap=None):
200200
self.colorbar=None
201201
self.update_dict= {'array':False}
202202

203-
@cbook.deprecated('1.3',alternative='the colorbar attribute')
204-
defset_colorbar(self,im,ax):
205-
"""set the colorbar and axes instances associated with mappable"""
206-
self.colorbar=im
207-
208203
defto_rgba(self,x,alpha=None,bytes=False):
209204
"""
210205
Return a normalized rgba array corresponding to *x*.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp