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 would you consider

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 combined

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 can check it out. If it looks OK, then I would like to simply

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 asarray( Z.todense() )) (I think it would

[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(),

[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

[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

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) is what you are looking for Great

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 the

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, instead

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 file. If the default font sizes for various items

[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

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 ebo...@hotmail.com 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 regard

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. [1] http://www.mail-archive.com/matplotlib-users

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 ebo...@hotmail.com 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 process

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 ebo...@hotmail.com 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

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 cimrm...@ntc.zcu.cz 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 hanging problem, i.e

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-07 Thread Robert Cimrman
Ryan May wrote: On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman cimrm...@ntc.zcu.cz wrote: Ryan May wrote: On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman cimrm...@ntc.zcu.cz wrote: Just for the record: Ryan May's example in this thread, that uses pipes, inspired me to try pipes as well

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 ond...@certik.cz 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

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 number of points to interpolate to increases