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

Commit295e5b7

Browse files
committed
Fixed set_clim() to emit a single 'changed' callback
1 parent6a2747b commit295e5b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/colorizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ def set_clim(self, vmin=None, vmax=None):
279279
ifvmaxisnotNone:
280280
self.norm.vmax=colors._sanitize_extrema(vmax)
281281

282-
#self.changed() will nowemit a update signal if the limits are changed
282+
# emit a update signal if the limits are changed
283283
iforig_vmin_vmax!= (self.norm.vmin,self.norm.vmax):
284-
self.changed()
284+
self.norm.callbacks.process('changed')
285285

286286
defget_clim(self):
287287
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp