Re: [Matplotlib-users] Where is the widgets ...???

2010-10-05 Thread John Hunter
On Mon, Oct 4, 2010 at 10:46 AM, Ademir Francisco da Silva
 wrote:
> Hi John ..., I hope everything goes well ...
>
> ( This message is only for you ... )
>
> I have decided to wrote this email to know if you have been working in "
> widget module " ..., as you know by 2 months ago I asked you about this and
> nothing happend since it yet. I have got the latest version of the
> matplotlib and numpy directly of the Christoph's site and after installed
> all of them my insight about it is that nothing changed, so I kindly ask you
> about your advance in resolve those problems. Just see my last 4 emails sent
> to you and matplotlib list.
>
> Summary ...
> ( snippet of my original code - Before they work fine but now the " cursor "
> just disappear and the " on_clicked " is not works )
> widgets.Cursor( axe, useblit = True, color = self.cor[ 477 ][ 1 ], lw = 2 )
> widgets.Button( pyplot.axes( [ .91, .1, .08, .06 ] ), self.textName[ 19 ],
>  color = self.cor[ 403 ][ 1 ], hovercolor = self.cor[ 46 ][ 1 ]
> ).\
>  on_clicked( lambda: pyplot.close( "all" ) )


There is a recent fix in matplotlib svn that fixes the bug you may be
seeing.  Specifically, if you do not save the names of the widgets you
are creating, the callbacks can disappear.  So you will want to do
something like

  mycursor = widgets.Cursor( axe, useblit = True, color = self.cor[
477 ][ 1 ], lw = 2 )
  mybutton = widgets.Button( pyplot.axes( [ .91, .1, .08, .06 ] ),
self.textName[ 19 ], ...)

Basically, if the names of the classes go out of scope, they are
garbage collected because we are using weak references internally to
make sure callbacks get cleaned up when they go out of scope.  So if
you are creating these variables and module level, make sure they are
names with a local variable, and if you are creating them at the class
level, make sure they are saved as an instance variable.

JDH

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Where is the widgets ...???

2010-07-11 Thread Christoph Gohlke
Again, please post a complete free-standing example that replicates the 
problem, otherwise we can not help you. The binaries you are using are 
as close to any later official binaries as possible at this point and 
they pass all the example tests for the agg, cairo, and pdf backends.

Christoph


On 7/11/2010 12:12 PM, Ademir Francisco da Silva wrote:
>Em 11/07/2010 13:56, John Hunter escreveu:
>> On Sun, Jul 11, 2010 at 11:15 AM, Ademir Francisco da Silva
>>> Case closed. Finally I find it..., but for my success I have taken off the
>>> #  of the  #interactive  : False  on the line #37 from this file
>>> matplotlib\\mpl-data\\matplotlibrc  and everything works fine now.
>> I don't think this flag will affect whether or nor widgets is
>> imported.  Are you sure you haven't made some other changes?
>>
>>> But I have another important question for all of you..., recently I have
>>> changed my Python's version from 2.6.5 to 2.7 and since I did it my
>>> widgets.Cursor and widgets.Button do not work, so anyone have a idea about
>>> this behavior to tell me, please ???
>>>
>>> Further information ...
>>> My code is the same and before it works fine but now it just not works ...,
>>> just take a look in the excerpt of my code below ...
>>>
>>> widgets.Cursor( axe, useblit = True, color = self.cor[ 477 ][ 1 ], lw = 2 )
>>> widgets.Button( pyplot.axes( [ .91, .1, .08, .06 ] ), self.textName[ 19 ],
>>>  color = self.cor[ 403 ][ 1 ], hovercolor = 
>>> self.cor[
>>> 46 ][ 1 ] ).\
>>>  on_clicked( self.button_12Click )
>>>
>>> How may I fix it, please ???
>> Did you compile matplotlib for python2.7 yourself -- we haven't
>> released any binaries yet for that version.  Can you paste a complete
>> free-standing example that replicates the problem as wee as the output
>> of your script on your system when you pass in the --verbose-helpful
>> flag?
>>
>> JDH
>>
>>
> Hi John ...,
>
> I am just take that binarie from this internet address
> http://www.lfd.uci.edu/~gohlke/pythonlibs/
> H..., so I was wondering that the problem is it and I will have to
> wait for the official version of the matplotlib binaries for the Python
> 2.7( win64 ). Sucks...!
> I hope to have that binaries asap and after the installation of it I
> will verify if that problem continues.
>
> anyway I really enjoyed your prompt aid ..., Thanks.
>
>
> Cheers,
>
>
> --
> Ademir Francisco da Silva
>
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>
>
>
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Where is the widgets ...???

2010-07-11 Thread Ademir Francisco da Silva

 Em 11/07/2010 13:56, John Hunter escreveu:

On Sun, Jul 11, 2010 at 11:15 AM, Ademir Francisco da Silva

Case closed. Finally I find it..., but for my success I have taken off the
#  of the  #interactive  : False  on the line #37 from this file
matplotlib\\mpl-data\\matplotlibrc  and everything works fine now.

I don't think this flag will affect whether or nor widgets is
imported.  Are you sure you haven't made some other changes?


But I have another important question for all of you..., recently I have
changed my Python's version from 2.6.5 to 2.7 and since I did it my
widgets.Cursor and widgets.Button do not work, so anyone have a idea about
this behavior to tell me, please ???

Further information ...
My code is the same and before it works fine but now it just not works ...,
just take a look in the excerpt of my code below ...

widgets.Cursor( axe, useblit = True, color = self.cor[ 477 ][ 1 ], lw = 2 )
widgets.Button( pyplot.axes( [ .91, .1, .08, .06 ] ), self.textName[ 19 ],
 color = self.cor[ 403 ][ 1 ], hovercolor = self.cor[
46 ][ 1 ] ).\
 on_clicked( self.button_12Click )

How may I fix it, please ???

Did you compile matplotlib for python2.7 yourself -- we haven't
released any binaries yet for that version.  Can you paste a complete
free-standing example that replicates the problem as wee as the output
of your script on your system when you pass in the --verbose-helpful
flag?

JDH



Hi John ...,

I am just take that binarie from this internet address
http://www.lfd.uci.edu/~gohlke/pythonlibs/
H..., so I was wondering that the problem is it and I will have to 
wait for the official version of the matplotlib binaries for the Python 
2.7( win64 ). Sucks...!
I hope to have that binaries asap and after the installation of it I 
will verify if that problem continues.


anyway I really enjoyed your prompt aid ..., Thanks.


Cheers,


--
Ademir Francisco da Silva

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Where is the widgets ...???

2010-07-11 Thread John Hunter
On Sun, Jul 11, 2010 at 11:15 AM, Ademir Francisco da Silva
> Case closed. Finally I find it..., but for my success I have taken off the
> #  of the  #interactive  : False  on the line #37 from this file
> matplotlib\\mpl-data\\matplotlibrc  and everything works fine now.

I don't think this flag will affect whether or nor widgets is
imported.  Are you sure you haven't made some other changes?

> But I have another important question for all of you..., recently I have
> changed my Python's version from 2.6.5 to 2.7 and since I did it my
> widgets.Cursor and widgets.Button do not work, so anyone have a idea about
> this behavior to tell me, please ???
>
> Further information ...
> My code is the same and before it works fine but now it just not works ...,
> just take a look in the excerpt of my code below ...
>
> widgets.Cursor( axe, useblit = True, color = self.cor[ 477 ][ 1 ], lw = 2 )
> widgets.Button( pyplot.axes( [ .91, .1, .08, .06 ] ), self.textName[ 19 ],
>     color = self.cor[ 403 ][ 1 ], hovercolor = self.cor[
> 46 ][ 1 ] ).\
>     on_clicked( self.button_12Click )
>
> How may I fix it, please ???

Did you compile matplotlib for python2.7 yourself -- we haven't
released any binaries yet for that version.  Can you paste a complete
free-standing example that replicates the problem as wee as the output
of your script on your system when you pass in the --verbose-helpful
flag?

JDH

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Where is the widgets ...???

2010-07-11 Thread Ademir Francisco da Silva

 Em 11/07/2010 12:22, Ademir Francisco da Silva escreveu:

Hi all ...,

Anyone may tell me what happend with the /widgets/  in the matplotlib???

Before it is here ...,  from matplotlib import widgets

but now it is vanished ..., or where it is ???

Further informations ...
my matplotlib version is 1.0.0 - $Revision: 8503 $
my numpy version is 1.5.0.dev8469
my OS is Windows Vista 64

Thank you very much for any help.

Cheers,


--
Ademir Francisco da Silva

Hello again ...,

Case closed. Finally I find it..., but for my success I have taken off 
the  #  of the  #interactive  : False  on the line #37 from this file  
matplotlib\\mpl-data\\matplotlibrc  and everything works fine now.


But I have another important question for all of you..., recently I have 
changed my Python's version from 2.6.5 to 2.7 and since I did it my  
widgets.Cursor and widgets.Button do not work, so anyone have a idea 
about this behavior to tell me, please ???


Further information ...
My code is the same and before it works fine but now it just not works 
..., just take a look in the excerpt of my code below ...


widgets.Cursor( axe, useblit = True, color = self.cor[ 477 ][ 1 ], lw = 2 )
widgets.Button( pyplot.axes( [ .91, .1, .08, .06 ] ), self.textName[ 19 ],
color = self.cor[ 403 ][ 1 ], hovercolor = 
self.cor[ 46 ][ 1 ] ).\

on_clicked( self.button_12Click )

How may I fix it, please ???


Cheers,


--
Ademir Francisco da Silva

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Where is the widgets ...???

2010-07-11 Thread Ademir Francisco da Silva

 Hi all ...,

Anyone may tell me what happend with the /widgets/  in the matplotlib???

Before it is here ...,  from matplotlib import widgets

but now it is vanished ..., or where it is ???

Further informations ...
my matplotlib version is 1.0.0 - $Revision: 8503 $
my numpy version is 1.5.0.dev8469
my OS is Windows Vista 64

Thank you very much for any help.

Cheers,


--
Ademir Francisco da Silva

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users