[Matplotlib-users] latest pylab matplotlib not working on OSX and python 2.6.2

2009-05-27 Thread Zorg 421
Hello matplotlib users, Using the source tarball on sourceforge (0.98.5.3), having pyqt-4.4.4 working, pyobjc-2.2b2 too (for GUI), but no pygtk at all, pylab does not work (a pylab based script simply display nothing, not even create a window). Embedding in QT4 works fine. even when using pythonw.

Re: [Matplotlib-users] pcolor getting slow

2009-05-27 Thread Eric Firing
jinbo wang wrote: > Hi dear users, >Recently I found pcolor took tremendously longer to draw a figure > than contour or imshow. I am wondering if anyone had the same > experience, or anyone knows why? Thank you very much! Yes, pcolor is inherently very slow, but flexible. Imshow is very fas

[Matplotlib-users] pcolor getting slow

2009-05-27 Thread jinbo wang
Hi dear users, Recently I found pcolor took tremendously longer to draw a figure than contour or imshow. I am wondering if anyone had the same experience, or anyone knows why? Thank you very much! Jinbo -- Register No

Re: [Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-27 Thread Sandro Tosi
Hi Darren, thanks for replying On Wed, May 27, 2009 at 21:01, Darren Dale wrote: > On Wed, May 27, 2009 at 9:11 AM, Sandro Tosi wrote: >> >> Hi all, >> I'd like to adapt 'animation_blit_qt4.py' to a pure OO approach, >> removing pylab from the code and move to something near to >> 'embedding_in_

Re: [Matplotlib-users] matplotlib dropping points in complex plot?

2009-05-27 Thread Will Grover
Hello Mike, Thanks for the quick reply - I'll try "path.simplify" as you suggest. My actual data is pretty big and unruly, but I wrote a bit of code that demonstrates the point dropping. This code plots three single-point-wide peaks on a baseline of noise that is 'length' points long. For smalle

Re: [Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-27 Thread Darren Dale
On Wed, May 27, 2009 at 9:11 AM, Sandro Tosi wrote: > Hi all, > I'd like to adapt 'animation_blit_qt4.py' to a pure OO approach, > removing pylab from the code and move to something near to > 'embedding_in_qt4.py'. > > I tried a bit but failed miserably :( > > What I'd like to achieve is use some

Re: [Matplotlib-users] Malloc error on show() with Wx/WxAgg

2009-05-27 Thread Tony S Yu
Correction, this error occurs on all GUI backends I've tried (I don't have gtk installed). The malloc error didn't occur on the other backends until I tried to interact with the plot window. -T On May 27, 2009, at 12:36 PM, Tony S Yu wrote: > I'm running into a really bizarre error that see

Re: [Matplotlib-users] matplotlib dropping points in complex plot?

2009-05-27 Thread Michael Droettboom
Good find. The comment is out of date. It is now followed in all backends. I will update the template. Mike Eric Firing wrote: > Michael Droettboom wrote: >> You can set the rcParam "path.simplify" to False to turn off this >> behavior. > > Mike, > > The matplotlibrc.template indicates that

Re: [Matplotlib-users] matplotlib dropping points in complex plot?

2009-05-27 Thread Eric Firing
Michael Droettboom wrote: > You can set the rcParam "path.simplify" to False to turn off this behavior. Mike, The matplotlibrc.template indicates that this is effective only for vector backends; is the template comment incorrect? Eric #path.simplify : False # When True, simplify paths in vect

[Matplotlib-users] Malloc error on show() with Wx/WxAgg

2009-05-27 Thread Tony S Yu
I'm running into a really bizarre error that seems to have started spontaneously (no changes I can think of were made to my system in the last few days and mpl was plotting without problems up until a few hours ago). When using WxAgg, the following code raises a malloc error. >>> import mat

Re: [Matplotlib-users] Printing in wx

2009-05-27 Thread Christopher Barker
Stefanie Lück wrote: > I'm trying to print my plots in a wxScrolledPanel under Windows XP but > it dosen't work. I only can print / preview the start of the plot on the > left upper site, the rest of page is empty: I wonder if that has to do with how you are using the scolledpanel, and DCs. Pos

Re: [Matplotlib-users] free'ing the plotted data?

2009-05-27 Thread Christopher Barker
guillaume ranquet wrote: > this is how I convert the xml into "plottable" arrays: > > def getnamefrom(name,src,what): > """extracts timestamps and 'what' from 'src' for 'name'""" > buffwhat = [] > bufftime = [] > sortedbyname = [] > [sortedbyname.append(element) for > eleme

[Matplotlib-users] Strange resize behaviour for qt backend

2009-05-27 Thread Ole Streicher
Hi, I am using matplotlib for some data vizualization. To ensure a consistent user interface among the whole application, I do the scrolling/zooming stuff myself. So, for a diagram, a horizontal scrollbar is displayed below the diagram that enabled to shift along the x axis. This is (part of) the

Re: [Matplotlib-users] free'ing the plotted data?

2009-05-27 Thread guillaume ranquet
Yes, that's obviously what I should have started this thread with :) this is how I convert the xml into "plottable" arrays: def getnamefrom(name,src,what): """extracts timestamps and 'what' from 'src' for 'name'""" buffwhat = [] bufftime = [] sortedbyname = [] [sortedbyname.ap

[Matplotlib-users] rc font sizes do not apply to math.text font sizes?

2009-05-27 Thread Chaitanya Krishna
Hi all, I am using the following rc params for the text font size plt.rc('font', size=10.0) plt.rc('xtick', labelsize='small') plt.rc('ytick', labelsize='small') plt.rc('legend', fontsize='medium', numpoints=1) plt.rc('mathtext', fontset='custom', it='serif:regular') But font

Re: [Matplotlib-users] free'ing the plotted data?

2009-05-27 Thread Michael Droettboom
It's not off topic -- and I understand what you're trying to do much better now. I assume at some point you convert all of the xml into a Numpy array and pass that to matplotlib? matplotlib will only keep a reference to the Numpy array, which should be far more compact, and you can safely remo

Re: [Matplotlib-users] free'ing the plotted data?

2009-05-27 Thread guillaume ranquet
sorry If my last message was confusing. I'm exctracting data from an xml file (100megs of xml) which is stored by my app as an array of dict in which I pick only some keys to plot. I'm just trying to figure out if the gc is able to free some parts of the dict (the un-plotted parts) by itself (and i

Re: [Matplotlib-users] free'ing the plotted data?

2009-05-27 Thread Michael Droettboom
I don't follow... If you need to free the data, you have to ensure that matplotlib doesn't need it, and the only way to do that is destroy the figure that references it. It's virtually impossible to create a dangling reference in Python (from within Python). Mike guillaume ranquet wrote: > T

Re: [Matplotlib-users] free'ing the plotted data?

2009-05-27 Thread guillaume ranquet
Thanks Mike, I just wanted to be sure wether matplotlib had a copy or not. I'll have to work on giving hints to the GC then... guillaume. Michael Droettboom wrote: > Yes, Python is reference counted (with a garbage collector to handle > cycles etc.). So, yes, the matplotlib plot keeps a "referen

Re: [Matplotlib-users] free'ing the plotted data?

2009-05-27 Thread Michael Droettboom
Yes, Python is reference counted (with a garbage collector to handle cycles etc.). So, yes, the matplotlib plot keeps a "reference" to your data after you pass it in so it continue to redraw it as the plot is panned/zoomed/resized etc. You can safely del your local reference, but the memory i

Re: [Matplotlib-users] matplotlib dropping points in complex plot?

2009-05-27 Thread Michael Droettboom
You can set the rcParam "path.simplify" to False to turn off this behavior. However, the goal is that the simplification is not noticable -- if it is that may be a bug. Are you able to share your data so I can look into this further? Cheers, Mike Will Grover wrote: > Hello matplotlib users, >

[Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-27 Thread Sandro Tosi
Hi all, I'd like to adapt 'animation_blit_qt4.py' to a pure OO approach, removing pylab from the code and move to something near to 'embedding_in_qt4.py'. I tried a bit but failed miserably :( What I'd like to achieve is use something like in 'embedding_in_qt4.py' but that can be updated using th

[Matplotlib-users] free'ing the plotted data?

2009-05-27 Thread guillaume ranquet
I'm currently trying to improve my app to render more and more data. I'm wondering if matplotlib keeps an internal copy of the datas once the plot function has been called? from what I understand from python (I'm quite new to python), everything is reference and no implicit copies are done. I'm t

Re: [Matplotlib-users] matplotlib.lines.Line2D object at 0x283d310 - strange error

2009-05-27 Thread Sandro Tosi
Hi, On Wed, May 27, 2009 at 13:29, ninjasmith wrote: > I'm a bit new to matplotlib and python.  I'm running ubuntu 64bit.  whenever > I try and do anything with matplotlib I get an error similar to above.  it > still works, i.e. when I run the show() command the plot will appear but all > matplot

[Matplotlib-users] Printing in wx

2009-05-27 Thread Stefanie Lück
Hi! I'm trying to print my plots in a wxScrolledPanel under Windows XP but it dosen't work. I only can print / preview the start of the plot on the left upper site, the rest of page is empty: http://www.snowflake-sl.info/printing_in_wx.JPG I used printing according the example of matplotlib pr

[Matplotlib-users] matplotlib.lines.Line2D object at 0x283d310 - strange error

2009-05-27 Thread ninjasmith
Hi, I'm a bit new to matplotlib and python. I'm running ubuntu 64bit. whenever I try and do anything with matplotlib I get an error similar to above. it still works, i.e. when I run the show() command the plot will appear but all matplotplib commands return an error similar to above. for examp