On Tuesday, June 22, 2010 10:03:06 am Eric Firing
> On 06/21/2010 09:28 PM, Matthias Michler wrote:
> > On Monday, June 21, 2010 06:30:04 pm Eric Firing wrote:
> >> On 06/21/2010 06:10 AM, Matthias Michler wrote:
> >>> Hello list,
> >>> I'm encountering a strange problem with the
RectangleSelector using the
> >>> latest version of svn. Namely it doesn't work if it
> >>> as RS = RectangleSelector(...)
> >>> but using
> >>> RectangleSelector(...)
> >>> in my script.
> >>> I modified the example rectangle_selector.py from the
> >>> examples/widgets to illustrate my observation.
> >>> Can anybody reproduce my findings or even explain
what is going on?
> >> If you don't keep a reference to the RectangleSelector
> >> vanishes--it is garbage-collected.
> >> Eric
> > Hi Eric,
> > thanks for your reply. That sounds reasonable, but I'm still
> > With the matplotlib release 0.99.1.1 the RectangleSelector
> > and without a reference to it. Was this old behavior somehow
yes I'm just using
> I don't know. In both cases, are you trying it in a script, and
> it outside ipython? Ipython keeps references to inputs and
with the slightly modified script I have sent last time for
additionally comment out the 'button' - keyword argument for the release
0.99.1.1. The only difference between the two runs is whether
found in the PYTHONPATH or not.
I'm baffled, too. That was what made starting this thread and hope for
> There haven't been many changes to widgets.py, and I don't see
> that could account for the difference I also don't see what could
> it alive if you don't keep a reference to it.
> If the same externally-run script works differently in this respect
> between the two mpl versions, then I'm baffled.
explanation, what I'm doing wrong.