Re: [Matplotlib-users] plotting with missing data?

2008-03-19 Thread Giorgio F. Gilestro
import numpy as np a = ['','','',1.1,2.2] mask_a = [i == '' for i in a] b = np.ma.MaskedArray(a, mask=mask_a) Chris Withers wrote: > Eric Firing wrote: > >> Chris, >> >> Use masked arrays. See masked_demo.py in the mpl examples subdirectory. >> > > Hi Eric, > > I took a look at that, b

Re: [Matplotlib-users] Using matplot lib in wxPython problem refresh screen

2008-03-14 Thread Giorgio F. Gilestro
your self.show() is passing the order to the frame; you need to comunicate with the canvas with draw() I suggest you to use wxmpl, it is the best way to integrate mpl into wx http://agni.phys.iit.edu/~kmcivor/wxmpl/ Bob Cumming wrote: > Hello, > > I have a problem when I try to refresh a plot

Re: [Matplotlib-users] wxmpl: Can't create printer "PDF" because the id "PDF" is already used

2007-12-06 Thread Giorgio F. Gilestro
I have the same problem with ubuntu gutsy. I believe it is a bug in libgnomeprint, not in wx. Ryan Krauss wrote: > FYI, I see this same warning in another wxPython program of mine that > doesn't use mpl or wxmpl, so it seems like it is a wxPython issue. > > Solutions are still welcome. > > Ryan >

Re: [Matplotlib-users] How to show matplotlib.image ?

2007-12-06 Thread Giorgio F. Gilestro
As as wxmpl user I say that is a great great idea! Christopher Barker wrote: > John Hunter wrote: > >> You cannot import pylab and use the FigureCanvasWx at the same time. >> Please follow the lead of examples/embedding_in_wx*.py if you want to >> use matplotlib in a wxpython GUI. >> > > o

Re: [Matplotlib-users] pick_event with wxmpl

2007-10-17 Thread Giorgio F. Gilestro
On 10/15/07, Ken McIvor <[EMAIL PROTECTED]> wrote: > On Oct 12, 2007, at 4:28 PM, Giorgio F. Gilestro wrote: > > > > Do you know if there is a reason why I cannot succeed in generating a > > pick_event using wxmpl? > > Yes, WxMpl disables all matplotlib events to ensure that

[Matplotlib-users] pick_event with wxmpl

2007-10-12 Thread Giorgio F. Gilestro
Do you know if there is a reason why I cannot succeed in generating a pick_event using wxmpl? I know I could use EVT_POINT but I need the picker event to return the event.ind thanks! - This SF.net email is sponsored by: Splun

Re: [Matplotlib-users] Font problem saving [e]ps

2007-07-10 Thread Giorgio F. Gilestro
Well I did fix it myself in the meanwhile. I must say I don't like working with the CVS because I am planning to release the application I am writing and I need to guarantee a minimal version of the packages that the end user should eventually install without caring too much about the CVS. Thank y

Re: [Matplotlib-users] matlab, idle, interactivity and teaching

2007-04-02 Thread Giorgio F. Gilestro
A really great IDE for windows users is pyScripter ( http://mmm-experts.com/Products.aspx?ProductId=4 ) It's probably the best I could try so far (and it's free). cheers On 3/30/07, Tim Hirzel <[EMAIL PROTECTED]> wrote: > As for a good IDE. I really like eclipse with pydev. For easy > student/be

[Matplotlib-users] Migration from Matlab: translator and EEGlab

2007-03-28 Thread Giorgio F. Gilestro
Hi, I have to question that will help some colleagues/friends of mine to switch to python from matlab. 1 - is there an automatic translator of code from matlab to python/numpy/matplotlib? I believe it would be very easy to implement due the similar syntax between the two. I could do something sim