[Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Chiara Caronna
Hi all, I have a script to update a plot in real time. It was working fine with matplotlib 0.99.1.1 but it doesn't work anymore with the new version. Here is the script: import numpy as n import pylab as p x=n.arange(10) y=n.random.randn(10) p.ion() fig=p.figure(1) ax=fig.add_subplot(111)

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Chiara Caronna
-users@lists.sourceforge.net On Fri, Aug 27, 2010 at 9:26 PM, Chiara Caronna chiaracaro...@hotmail.com wrote: Hi all, I have a script to update a plot in real time. It was working fine with matplotlib 0.99.1.1 but it doesn't work anymore with the new version. Here is the script: import

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Chiara Caronna
: Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0 To: chiaracaro...@hotmail.com CC: matplotlib-users@lists.sourceforge.net On Fri, Aug 27, 2010 at 9:26 PM, Chiara Caronna chiaracaro...@hotmail.com wrote: Hi all, I have

[Matplotlib-users] updating an image plot

2010-05-21 Thread Chiara Caronna
Hi, I am trying to update the image plotted in a figure. From what I understood, this code should do the job: import pylab as p image=p.zeros((20,20)) p.ion() ax=p.imshow(image) p.draw() for i in range(10): print i p.ion() image[i,:]=i ax.set_array(image) p.draw() But the image is not

[Matplotlib-users] changing ticklabels color

2008-05-22 Thread Chiara Caronna
Hello, I would like to change the color of the yticklabels. I tried to use this command: ax1=p.subplot(212) ax1.set_xlabel('t [sec]') ax1.set_ylabel('g^2(q,t)') ax1.set_yticklabels(color='r') but it gives an error: TypeError: set_yticklabels() takes at least 2 non-keyword arguments (1 given)

Re: [Matplotlib-users] changing ticklabels color

2008-05-22 Thread Chiara Caronna
p.setp(ax1.get_yticklabels(), color='r') This worked! Thanks a lot! Chiara To: matplotlib-users@lists.sourceforge.net From: [EMAIL PROTECTED] Date: Thu, 22 May 2008 17:52:09 +0300 Subject: Re: [Matplotlib-users] changing ticklabels color Chiara Caronna [EMAIL PROTECTED] writes: ax1

Re: [Matplotlib-users] Polygon masking possible?

2008-03-28 Thread Chiara Caronna
March 2008 16:44:54 Chiara Caronna wrote: I tried ds9 and It looks like this is what I would like to do (though I couldn't try funtools, but what you describe is good). DO you think it is possible to make something like this with matplotlib? Thanks a lot for your The initiating thread (from

Re: [Matplotlib-users] Polygon masking possible?

2008-03-14 Thread Chiara Caronna
) * in ds9, file- open others - open array. You need to select array dimension, type and endianness of the array. Regards, -JJ On Sat, Mar 8, 2008 at 11:17 AM, Chiara Caronna [EMAIL PROTECTED] wrote: Hello, I am also interested in masking polygons and defining the polygon

[Matplotlib-users] backends issue

2007-02-21 Thread Chiara Caronna
I have a problem with backend: by default it was Agg; i tried to change the file .matplotlibrc and to put GTKAgg, but as I import pylab I got these errors: from pylab import * Traceback (most recent call last): File stdin, line 1, in ? File /usr/local/lib/python2.4/site-packages/pylab.py,

[Matplotlib-users] newbie: easy question (I hope)

2007-02-16 Thread Chiara Caronna
Hello, I would like to plot some data while the interpreter continues calculating... if I just write plot(x,y) show() Then the code stops until I close the window... how should I do? Thanks in advance Chiara _ Don't just search.

[Matplotlib-users] problem with show()

2007-02-05 Thread Chiara Caronna
I, I have a problem with showing plot. When I run this code: figure(1) semilogx(data[:,0],data[:,1]) savefig('try.png') show() It save the plot properly, but it doesn't show it. I tried to run it with --verbose-helpful and this is the output: matplotlib data path