On 2012/07/25 12:45 PM, Scott Henderson wrote:
> Thanks for the response. To be more specific, if I run the modified
> script in an ipython --pylab terminal:
>
> In [1]: %run lasso_demo.py
>
> In [2]:
>
> The function returns, and the lasso manager is garbage collected as
> you say. In other words,
Thanks for the response. To be more specific, if I run the modified script in
an ipython --pylab terminal:
In [1]: %run lasso_demo.py
In [2]:
The function returns, and the lasso manager is garbage collected as you say. In
other words, the plot shows up, but I can't draw a lasso and select poin
On Wed, Jul 25, 2012 at 5:11 PM, Scott Henderson wrote:
> Hello, I'm trying to incorporate some matplotlib widgets into my scripts
> that generate plots. I'm unsure why, but if I wrap the figure creation
> lines in lasso_demo.py with a function the demo does not work. Why?
>
> #Original:
> #-
Hello, I'm trying to incorporate some matplotlib widgets into my scripts
that generate plots. I'm unsure why, but if I wrap the figure creation
lines in lasso_demo.py with a function the demo does not work. Why?
#Original:
#
if __name__ == '__main__':
data = [Datum(*xy) for xy i