Re: [Matplotlib-users] speeding-up griddata()

2009-07-14 Thread Robert Cimrman
Robert Kern wrote: > On 2009-07-13 13:20, Robert Cimrman wrote: >> Hi all, >> >> I would like to use griddata() to interpolate a function given at >> specified points of a bunch of other points. While the method works >> well, it slows down considerably as the numb

[Matplotlib-users] speeding-up griddata()

2009-07-13 Thread Robert Cimrman
Hi all, I would like to use griddata() to interpolate a function given at specified points of a bunch of other points. While the method works well, it slows down considerably as the number of points to interpolate to increases. The dependence of time/(number of points) is nonlinear (see the

Re: [Matplotlib-users] plot a triangular mesh

2009-05-25 Thread Robert Cimrman
Ondrej Certik wrote: > On Fri, May 22, 2009 at 3:37 PM, Ondrej Certik wrote: >> Thanks a lot John. I tried that and it does what I want. I just need >> to convert and probably average my 3 different values at the 3 >> vertices of the triangle and color the triangle with that color. When >> I get i

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Robert Cimrman
Ryan May wrote: > On Thu, May 7, 2009 at 12:39 PM, Eric Firing wrote: > >> In case you are not receiving the automatic svn commit messages: yesterday >> I took the liberty of renaming log.py to multiprocess.py, because as far as >> I could see the former gave no clue as to the point of the exampl

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Robert Cimrman
Ryan May wrote: On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman wrote: Ryan May wrote: On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman wrote: Just for the record: Ryan May's example in this thread, that uses pipes, inspired me to try pipes as well, instead of queues (multiprocessing

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
william ratcliff wrote: I'd like to see it ;> Here you are... r. import time from multiprocessing import Process, Pipe from Queue import Empty import numpy as np import pylab import gobject class ProcessPlotter(object): def __init__(self): self.x = [] self.y = [] def

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
Ryan May wrote: > On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman wrote: >> >> Just for the record: Ryan May's example in this thread, that uses pipes, >> inspired me to try pipes as well, instead of queues >> (multiprocessing.Pipe instead of Queue) and the "

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
Robert Cimrman wrote: > Hi Ryan, > > Ryan May wrote: >> On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: >> >>> Ryan May wrote: >>>> Try this: >>>> >>>> >>> http://matplotlib.sourceforge.net/examples/animation/simple_anim_

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Ryan May wrote: > On Fri, Apr 24, 2009 at 5:52 AM, Esmail wrote: > >> Ryan May wrote: >>> Any idea if it's possible to finish a Python program but still have >> the >>> graph showing? >>> >>> FWIW, I'm doing this under Linux. >>> >>> >>> You'd have to run the plotting in a separate pr

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Esmail wrote: > Robert Cimrman wrote: >> This is exactly what I have tried/described in [1], using the >> multiprocessing module. It sort of works, but I have that hanging >> problem at the end - maybe somebody jumps in and helps this time :) >> >> r. >>

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Hi Ryan, Ryan May wrote: > On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: > >> Ryan May wrote: >>> Try this: >>> >>> >> http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html >>> (If not gtk, there are other examples there.) >> Thanks Ryan, that'll give me some idea with regar

[Matplotlib-users] plotting in a separate process

2009-03-31 Thread Robert Cimrman
Hi all! I have a long running (non-GUI) python application, that needs to plot some curves and update them in time, as new data are computed. I'm well aware of ezplot, but would like to use a matplotlib-multiprocessing-only solution, as I have already enough dependencies. The best thing I have

Re: [Matplotlib-users] findobj in pylab

2008-07-07 Thread Robert Cimrman
Eric Firing wrote: > Robert Cimrman wrote: >> Eric Firing wrote: >>> I'm not sure if this is addressing your situation, but the simplest >>> way to adjust all font sizes is to use the rcParams dictionary, >>> either directly or via the matplotlibrc

Re: [Matplotlib-users] findobj in pylab

2008-07-04 Thread Robert Cimrman
Eric Firing wrote: > I'm not sure if this is addressing your situation, but the simplest way > to adjust all font sizes is to use the rcParams dictionary, either > directly or via the matplotlibrc file. If the default font sizes for > various items are specified using "medium", "large", etc, in

Re: [Matplotlib-users] findobj in pylab

2008-07-04 Thread Robert Cimrman
John Hunter wrote: > On Thu, Jul 3, 2008 at 8:42 AM, John Kitchin <[EMAIL PROTECTED]> wrote: >> Thanks Matthias. That is a helpful example. >> >> I have been trying to figure out how to recursively examine all the objects >> in fig to see if there is a particular settable property. It seems like th

Re: [Matplotlib-users] atomic line.set_xdata and set_ydata

2008-01-29 Thread Robert Cimrman
John Hunter wrote: > On Jan 29, 2008 8:33 AM, Robert Cimrman <[EMAIL PROTECTED]> wrote: >> Is there a way of simultaneously setting both xdata and ydata of a line? >> I need to animate a line with varying number of points in each frame. > > line.set_data(xdata, ydata) &

[Matplotlib-users] atomic line.set_xdata and set_ydata

2008-01-29 Thread Robert Cimrman
Is there a way of simultaneously setting both xdata and ydata of a line? I need to animate a line with varying number of points in each frame. regards, r. - This SF.net email is sponsored by: Microsoft Defy all challenges.

[Matplotlib-users] setting font size for figure elements

2007-08-27 Thread Robert Cimrman
Hi mpl'ers, I have noticed that I keep setting the font size of the figure elements (axes labels, tick labels, title) so often that it would deserve a function, or better an Axes method to do the same. I am aware of the matplotlibrc settings, but I need something to play with after a figure is dra

Re: [Matplotlib-users] Fwd: interactive plots again

2007-03-26 Thread Robert Cimrman
Bill Baxter wrote: > gah! bitten by reply to sender once again. Yes, this is a bit annoying. > -- Forwarded message -- > From: Bill Baxter <[EMAIL PROTECTED]> > Date: Mar 24, 2007 12:09 PM > Subject: Re: [Matplotlib-users] interactive plots again > To

[Matplotlib-users] interactive plots again

2007-03-22 Thread Robert Cimrman
Maybe I have reinvented the wheel, but I find the attached code snippet very useful. I have modified a bit the recipe at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65222 to be used in the following situation: You plot (interactively) something in a main program, which than works heavi

[Matplotlib-users] tight axis in OO interface

2007-03-22 Thread Robert Cimrman
Hello, I am using the OO interface to plot some data in logarithmic y-scale. The data displayed are almost constant but not entirely, see the attached image. In order to see the details, I would like to do something like 'axis( 'image' )' for the yaxis. I have tried to play with axes.set_ylim(), a

Re: [Matplotlib-users] spy ignores negative values?

2006-12-12 Thread Robert Cimrman
Eric Firing wrote: > Robert Cimrman wrote: > [...] >> What could be done, though, is to raise an exception explaining that >> sparse matrices and the image mode don't like each other; as it is, >> the function spy3 just dies on asarray (should be st. like asarra

Re: [Matplotlib-users] spy ignores negative values?

2006-12-11 Thread Robert Cimrman
Eric Firing wrote: > Robert Cimrman wrote: >> Eric Firing wrote: >>> Robert and any other spy users: >>> >>> I have committed to svn a new axes method, spy3, that combines a >>> modification of the functionality of both spy and spy2. I hope you

Re: [Matplotlib-users] spy ignores negative values?

2006-12-07 Thread Robert Cimrman
Eric Firing wrote: > Robert and any other spy users: > > I have committed to svn a new axes method, spy3, that combines a > modification of the functionality of both spy and spy2. I hope you can > check it out. If it looks OK, then I would like to simply replace spy > and spy2 with this combi

Re: [Matplotlib-users] spy ignores negative values?

2006-11-23 Thread Robert Cimrman
Eric Firing wrote: > One more miscellaneous thought: perhaps spy and spy2 should be > consolidated into a single function with a kwarg to select the marker > version or the image version? Their purpose is identical (isn't it?), > and it would reduce namespace clutter. one more thing here: usua

Re: [Matplotlib-users] spy ignores negative values?

2006-11-23 Thread Robert Cimrman
Eric Firing wrote: > Robert Cimrman wrote: >> John Hunter wrote: >>>>>>>> "Robert" == Robert Cimrman <[EMAIL PROTECTED]> writes: >>> Robert> BTW would you consider changing the definition of spy(2) >>> Robert> as

Re: [Matplotlib-users] spy ignores negative values?

2006-11-22 Thread Robert Cimrman
John Hunter wrote: >>>>>> "Robert" == Robert Cimrman <[EMAIL PROTECTED]> writes: > > > Robert> BTW would you consider changing the definition of spy(2) > Robert> as shown below, so that one could specify what 'to be a >

Re: [Matplotlib-users] spy ignores negative values?

2006-11-21 Thread Robert Cimrman
John Hunter wrote: >> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: > > Eric> Yes, it should be !=0. The purpose is to show how sparse a > Eric> matrix is--how much is filled with zeros--by displaying the > Eric> non-zero entries. > > OK I fixed it. Thanks. Thanks! BTW wou