Re: [Matplotlib-users] Plotting loop refuses to update display on OS X

2008-10-04 Thread Jae-Joon Lee
functions like raw_input blok the mianloop of some gui backends (e.g., gtk) but work fine with some other backend (although Tk is the only backend I know of). So my guess is that you used a different backend with 0.98.1. I guess you have a few options. * try different backend (Tk) with 0.98.3 *

[Matplotlib-users] Clear Figure

2008-10-04 Thread rocha
Hi Guys, I need to clear the Figure after the user has clicked the some button in PyQt, but when I try to plot the graphics again nothing appear. In ipython it works, but when I try it inside my application it does not work. What am I missing? Inside my MplCanvas class (actually it is a

Re: [Matplotlib-users] formatting figures for publciation

2008-10-04 Thread Eric Firing
John Hunter wrote: On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing [EMAIL PROTECTED] wrote: Good answer, but there may be one exception. The Matlab function description indicates that it can produce eps files with the cmyk color space, which is indeed something that publishers tend to want,

Re: [Matplotlib-users] Clear Figure

2008-10-04 Thread Jae-Joon Lee
I guess you need to put draw() after plot() self.canvas.figure.clf() self.canvas.axes.plot([1.,2.,4.]) self.canvas.draw() Let us know if it does not help. -JJ On Sat, Oct 4, 2008 at 7:17 PM, rocha [EMAIL PROTECTED] wrote: Hi Guys, I need to clear the Figure after the user has clicked the

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread Eric Firing
John Hunter wrote: On Tue, Sep 30, 2008 at 5:07 PM, Jae-Joon Lee [EMAIL PROTECTED] wrote: The problem is already well explained by Eric. And my solution is to interpret the legend.pad as a fraction of the textsize (pad=0.3 seems to work fine in my eyes). Note that this breaks the backward

Re: [Matplotlib-users] plotting numbers on axes in scientific notation

2008-10-04 Thread Eric Firing
Fabrice Silva wrote: Le mardi 09 septembre 2008 à 08:26 -0400, Michael Droettboom a écrit : You can use def ticklabel_format(self, **kwargs): It did not figure how to use that! I've tried in ipython : import numpy as np t = np.linspace(0,1,1024) f =

Re: [Matplotlib-users] plotting numbers on axes in scientific notation

2008-10-04 Thread Eric Firing
Eric Firing wrote: Fabrice Silva wrote: Le mardi 09 septembre 2008 à 08:26 -0400, Michael Droettboom a écrit : You can use def ticklabel_format(self, **kwargs): It did not figure how to use that! I've tried in ipython : import numpy as np t = np.linspace(0,1,1024)