Re: [Matplotlib-users] draw() doesn't always force draw on qt4?

2008-04-24 Thread Glen W. Mabey
On Thu, Apr 24, 2008 at 08:59:32AM -0500, John Hunter wrote: > On Wed, Apr 23, 2008 at 1:49 PM, Glen W. Mabey <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I'm using today's svn source and I'm surprised that the following loop > > does not get

[Matplotlib-users] draw() doesn't always force draw on qt4?

2008-04-23 Thread Glen W. Mabey
Hello, I'm using today's svn source and I'm surprised that the following loop does not get redrawn 10 times. for it in range( 10 ): plot( arange( it ) ) draw() raw_input(); That is, within a 'ipython -pylab' session. Is this really a question for the ipython folks? Or am I

Re: [Matplotlib-users] Plot data from custom class

2007-03-02 Thread Glen W. Mabey
On Fri, Mar 02, 2007 at 08:46:24AM -0600, Glen W. Mabey wrote: > P.S. You may also need to implement functions like __len__; if these > concepts are well-defined for your class, then it should be a very > straightforward process. But the problem is (if your experience is similar to m

Re: [Matplotlib-users] Plot data from custom class

2007-03-02 Thread Glen W. Mabey
On Fri, Mar 02, 2007 at 08:44:02AM -0600, Glen W. Mabey wrote: > One approach that I've used recently is to simply provide functionality > for the [] operator (done by implementing the __getslice__ member > function) that accesses the data according to standard slicing rules. >

Re: [Matplotlib-users] Plot data from custom class

2007-03-02 Thread Glen W. Mabey
On Fri, Mar 02, 2007 at 09:41:03AM -0500, Simon Wood wrote: > Out of the box matplotlib works great with Numeric and numarray data types. > However, I have my own custom class which contains data members, methods and > an array of data (underlying C array). Is there a way to expose the C array > da

Re: [Matplotlib-users] family="sans-serif" not taking effect? why?

2007-01-08 Thread Glen W. Mabey
On Fri, Jan 05, 2007 at 10:30:50PM -0500, [EMAIL PROTECTED] wrote: > does fontweight = "..." work for you? I couldn't get that one to work I sure can't see any difference in the tick labels, at least (didn't try it for manually-instantiated text). But what I wonder is whether there is some issue

Re: [Matplotlib-users] family="sans-serif" not taking effect? why?

2007-01-05 Thread Glen W. Mabey
On Fri, Jan 05, 2007 at 12:21:04PM -0500, [EMAIL PROTECTED] wrote: > In my code I did family="sans-serif" but it didn't seem to have > any effect. Any ideas? I was struggling with this myself this week. Do: import matplotlib.font_manager fm = matplotlib.font_manager.FontManager() If fm

Re: [Matplotlib-users] [Numpy-discussion] which fft I should use

2007-01-01 Thread Glen W. Mabey
On Wed, Dec 27, 2006 at 12:58:24PM -0500, Robert Kern wrote: > Gennan Chen wrote: > > Hi! all, > > > > There are so many fft routines in Scipy/Numpy. Does anyone know > > which one should be used officially? > > For maximum portability and speed, use numpy.dual.fft() and its friends. That >

[Matplotlib-users] fixed border size around axes

2006-11-30 Thread Glen W. Mabey
Hello, Searching on the MPL-users and -devel for set_position did not produce any leads on this topic, so I doubt it's possible but ... When using MPL as a widget within an application, I find it hard to set the relative position of the axes in such a way that is appropriate over a wide range of

[Matplotlib-users] cannot savefig to cStringIO

2006-11-08 Thread Glen W. Mabey
Hello! I'm dynamically dishing out plots via matplotlib through a web server, so I really want to savefig to some type of memory object. Using both os.pipe and cStringIO objects, I get this type of error: In [9]:%history 1 : import matplotlib 2 : matplotlib.use('Agg') 3 : import pylab 4 : ax =

Re: [Matplotlib-users] size of axes in pixels

2006-10-24 Thread Glen W. Mabey
On Tue, Oct 24, 2006 at 08:49:19AM -0500, John Hunter wrote: > >>>>> "Glen" == Glen W Mabey <[EMAIL PROTECTED]> writes: > > Glen> Hello, I have been unable to discover in the docs a method > Glen> for discovering the exact size in pixe

[Matplotlib-users] size of axes in pixels

2006-10-24 Thread Glen W. Mabey
Hello, I have been unable to discover in the docs a method for discovering the exact size in pixels of an axes. The only way I have thought of is to get the size of the canvas via FigureCanvas.get_width_height() and then multiply by the results of axes.get_position(), but really I want to have th

[Matplotlib-users] divmod returns empty tuple sometimes?

2006-07-28 Thread Glen W. Mabey
Hello, Using 0.87.4, I'm getting this traceback with a date plot: /usr/local/stow/matplotlib-0.87.4/lib/python2.4/site-packages/matplotlib/dates.py in _from_ordinalf(x, tz) 154 dt = datetime.datetime.fromordinal(ix) 155 remainder = x - ix --> 156 hour, remainder = divmod(24*

Re: [Matplotlib-users] 3d bar plots

2006-06-02 Thread Glen W. Mabey
"Jonathan" == Jonathan Taylor <[EMAIL PROTECTED]> writes: > > Hi, > > Was wondering if anyone knows if there was any way to > reproduce this kind of example: > > http://www.mps.mpg.de/dislin/exa_bars3d.html > > i.e. a 3d barplot. One alternative that exists is Qwt3d: http://qwtplot3d.sour