Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1161df

Browse files
committed
Minor fixes according to Github discussion.
1 parent 51f6a6e commit f1161df

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

doc/users/whats_new.rst

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ revision, see the :ref:`github-stats`.
2424
.. contents:: Table of Contents
2525
:depth: 3
2626

27+
.. _whats-new-1-5:
28+
29+
new in matplotlib-1.5
30+
=====================
31+
32+
Widgets
33+
-------
34+
35+
Active state of Selectors
36+
`````````````````````````
37+
38+
All selectors now implement ``set_active`` and ``get_active`` methods (also
39+
called when accessing the ``active`` property) to properly update and query
40+
whether they are active.
41+
2742
.. _whats-new-1-4:
2843

2944
new in matplotlib-1.4
@@ -382,13 +397,6 @@ instead of ``:context:`` any time you want to reset the context.
382397
Widgets
383398
-------
384399

385-
Active state of Selectors
386-
`````````````````````````
387-
388-
All selectors now implement ``set_active`` and ``get_active`` methods (also
389-
called when accessing the ``active`` property) to properly update and query
390-
whether they are active.
391-
392400
Span Selector
393401
`````````````
394402

lib/matplotlib/widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_active(self):
121121
"""
122122
return self._active
123123

124-
active = property(set_active, get_active, doc="Is the widget active?")
124+
active = property(get_active, set_active, doc="Is the widget active?")
125125

126126
def ignore(self, event):
127127
"""Return True if event should be ignored.
@@ -1095,7 +1095,7 @@ def _update(self):
10951095

10961096
class _SelectorWidget(AxesWidget):
10971097
def set_active(self, active):
1098-
super(_SelectorWidget, self).set_active(active)
1098+
AxesWidget.set_active(self, active)
10991099
if active:
11001100
self.update_background(None)
11011101

0 commit comments

Comments
 (0)