Re: [Matplotlib-users] one data set, two y axis scales

2009-06-06 Thread Sebastian Busch
Jae-Joon Lee wrote: ... def Tc(Tf): return (5./9.)*(Tf-32) ax1 = subplot(111) # y-axis in F ax2 = twinx() # y-axis in C def update_ax2(ax1): y1, y2 = ax1.get_ylim() ax2.set_ylim(Tc(y1), Tc(y2)) # automatically update ylim of ax2 when ylim of ax1 changes.

Re: [Matplotlib-users] Where to post examples (specifically, one that may be useful for time-evolution plots)

2009-06-06 Thread John Hunter
On Fri, Jun 5, 2009 at 11:39 PM, Tony S Yuton...@mit.edu wrote: Are there guidelines for what makes a good example to be included with the matplotlib examples? I have a matplotlib snippet I'd like to post somewhere, but I'm not sure where to put it. I doubt it'd be useful enough to be

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-06-06 Thread Xavier Gnata
ok. My bad! Sorry. I have changed the default to %1.4g so that is matches my usecases *but* I agree that correct way to improve it in not that trivial... You can control the point at which mpl falls over to scientific notation. From the matplotlibrc file (see

Re: [Matplotlib-users] Where to post examples (specifically, one that may be useful for time-evolution plots)

2009-06-06 Thread Tony S Yu
On Jun 6, 2009, at 9:34 AM, John Hunter wrote: I'm happy to post this example in the examples dir, where it will automatically get picked up in the website gallery and examples dir. That'd be great! The scipy cookbook is fine too, but I would prefer that a little mini tutorial be written in

[Matplotlib-users] Draw a rectangle with a transparent hole

2009-06-06 Thread projetmbc
Hello, I would like to draw a rectangle and then to cut a disc wich is in the rectangle. Is it possible ? Christophe -- OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-06-06 Thread Eric Firing
Xavier Gnata wrote: ok. My bad! Sorry. I have changed the default to %1.4g so that is matches my usecases *but* I agree that correct way to improve it in not that trivial... You can control the point at which mpl falls over to scientific notation. From the matplotlibrc file (see

Re: [Matplotlib-users] changing x axis to y and y axis to x in colorbar Object

2009-06-06 Thread feldmaus
Eric Firing efir...@... writes: I don't understand what your question has to do with the colorbar; but in anything like pcolor, if you swap X and Y, then at the same time you need to transpose Z. Thanks, that was my Problem i had to transpose my z. :-) numpy.transpose(z) Regards Markus

[Matplotlib-users] update colorbar on new incoming data

2009-06-06 Thread feldmaus
Hi All, The User of my program should use a slider element which lets compute x,y and z and then my colorbar should also be updated with the new computed x,y, and z values. How to do this ? There is a set_colorbar() method, but i dont know how to use it. I also found a set_axes() method. Here

Re: [Matplotlib-users] update colorbar on new incoming data

2009-06-06 Thread Eric Firing
feldmaus wrote: Hi All, The User of my program should use a slider element which lets compute x,y and z and then my colorbar should also be updated with the new computed x,y, and z values. How to do this ? There is a set_colorbar() method, but i dont know how to use it. I also found a

Re: [Matplotlib-users] x= / y= labels default format is wrong

2009-06-06 Thread Xavier Gnata
Eric Firing wrote: Xavier Gnata wrote: ok. My bad! Sorry. I have changed the default to %1.4g so that is matches my usecases *but* I agree that correct way to improve it in not that trivial... You can control the point at which mpl falls over to scientific notation. From the

Re: [Matplotlib-users] update colorbar on new incoming data

2009-06-06 Thread feldmaus
Eric Firing efir...@... writes: If x,y don't change, and if you are not using masked arrays, then you might be able to add something like this: self.plots3.set_array(np.transpose(z).ravel()) self.plots3.autoscale() self.figure.canvas.draw() The colorbar