Re: [Matplotlib-users] Plotting data from serial stream

2010-03-13 Thread Brian Zambrano
I've done this successfully with both the Qt4 and WX Agg backends. The part you care about is the update method. Here's the snippet I use for Qt. It shouldn't change except for your imports at the top if you're using Wx. Note, I've trimmed this down a bit, so hopefully I didn't trim out anythin

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Brian Zambrano
I just upgraded to 0.99.1 and it's working perfectly now. I was previously hacking _png.so with install_name_tool, and that's not necessary anymore as well. Thank you to Emanuele and everyone else...much appreciated! BZ On Tue, Nov 10, 2009 at 1:38 PM, Emanuele Santos wrote: > On Tue, Nov 10,

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Brian Zambrano
FWIW, I'm using the official 0.98.5. Looking at the app bundle, all of the matplotlib .so files are linking against: @executable_path/../Frameworks/libgcc_s.1.dylib ...*except* matplotlib/backends/_macosx.so which is linking against: /usr/lib/libgcc_s.1.dylib So, I didn't see any looking in /u

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Brian Zambrano
lib present in the system and the wrong > one was being loaded. > > I don't think it's a py2app bug because I can reproduce it by just running > python.org's python and importing matplotlib.axis. > > I guess it is a bug in matplotlib. > > -- Emanuele. >

[Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-09 Thread Brian Zambrano
I'm getting my Py2app build running and think I've worked around some issues, but another major one has come up. My application is being built on OS X 10.5.8, where matplotlib is, oviously, installed. On another 10.5.X machine without any of the app's dependencies, my compiled app runs just fine.

Re: [Matplotlib-users] Resize error with Qt4 backend

2009-07-02 Thread Brian Zambrano
On my system, this example appears to be working just fine. I even bumped the number of data points from 1000 to 10,000. I'm on OS X 10.5.7 with: matplotlib 0.98.5.2 PyQt 4.5.1 (GPL) Qt 4.5 (LGPL) Maybe try updating your PyQt installation? BZ On Thu, Jul 2, 2009 at 6:46 AM, Ole Streicher wrot

[Matplotlib-users] Resize error with Qt4 backend

2009-07-01 Thread Brian Zambrano
Hi all, I'm having a problem with resizing a FigureCanvas using the Qt4 backend when the FigureCanvas is used alongside some dock widgets. What happens is that the figure never grows beyond the original size set when the window or other dock widgets are expanded. It's probably easier to look at

Re: [Matplotlib-users] Resize error with Qt4 backend

2009-07-01 Thread Brian Zambrano
canvas and everything worked fine. I also removed the overridden resizeEvent. BZ On Wed, Jul 1, 2009 at 1:17 PM, Brian Zambrano wrote: > Hi all, > > I'm having a problem with resizing a FigureCanvas using the Qt4 backend > when the FigureCanvas is used alongside some do

Re: [Matplotlib-users] Creating an xaxis with minutes

2009-04-08 Thread Brian Zambrano
On Wed, Apr 8, 2009 at 7:33 AM, Ryan May wrote: > > import matplotlib.ticker as mticker > > def minsec(sec, unused): > minutes = sec // 60 > sec = sec - minutes * 60 > return '%d:%02d' % (minutes, sec) > > locator = mticker.MultipleLocator(60) > formatter = mticker.FuncFormatter(minse

[Matplotlib-users] Creating an xaxis with minutes

2009-04-07 Thread Brian Zambrano
He there, I'm new to matplotlib but have really been appreciating the thorough documentation and examples online. I've never worked with matlab either so I'm stumbling my way around a bit, but have managed to get some basic plots working with my wxPython program. I'm plotting some simple time/t