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.lins

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] 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 ba

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

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

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread John Hunter
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 > compatibility. I

[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 QWidge

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] Problem in afm.py with 0.98.3

2008-10-04 Thread Berthold Höllmann
I have a problem with every matplot version since 0.90.1. One of my installed fonts causes afm.py to bail out. I am sure I reported this problem before without reaction. After I installed python 1.6 and a recent numpy 0.90.1 does not work anymore so I tried the latest again, and get the afm error

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

2008-10-04 Thread Zane Selvans
I have a Python module that I've written with some pylab plotting routines in it. One of them loops over a list of objects, generating some plots based on the data associated with each list member in turn. It's meant to be an interactive way to step through the list and see what the thing

[Matplotlib-users] upperlimits plot question

2008-10-04 Thread Antonino Cucchiara
Hello, I am making some plots using the upperlimit keyword in the errorbar command as in the examples. The arrows are drawn correctly but I notice that the exact limit point is in the middle of the arrow and not where the arrow starts. Is it any way to improve it and have the beginning of the arr

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

2008-10-04 Thread Fabrice Silva
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 = np.sin(10*t)/1e5 plot(t,f)

Re: [Matplotlib-users] Multiple sub-plot goes off the top of the page

2008-10-04 Thread David Goldsmith
Peter: did John's solution fix your problem? DG - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread Christopher Brown
Hi Jae-Joon, JL> I just had a quick look at this problem. And I'm posting a quick JL> solution in case Christoper haven't dig it yet. My figure looks great with these changes. Thank you very much! -- Christopher Brown, Ph.D. Department of Speech and Hearing Science Arizona State University ---

[Matplotlib-users] Citation for Numpy

2008-10-04 Thread Buz Barstow
Dear All, Does anyone know of a citation that I can use for Numpy? Thanks! and all the best, --Buz - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications w

Re: [Matplotlib-users] formatting figures for publciation

2008-10-04 Thread Martin Lüthi
> Thanks, but this wasn't quite what I had in mind. the exportfig m - > file trims the size of the white bounding box on the figure, in > addition to saving the image. Is there an easy way to do that with > matplotlib? If you produce pdf, pdfcrop is neat. Best, Martin -- Martin Lüthi

Re: [Matplotlib-users] formatting figures for publciation

2008-10-04 Thread John Hunter
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, and > something tha

Re: [Matplotlib-users] formatting figures for publciation

2008-10-04 Thread Eric Firing
Darren Dale wrote: > On Friday 26 September 2008 18:49:25 Gideon Simpson wrote: >> Is there anything akin to this MATLAB script: >> >> http://www.mathworks.com/company/newsletters/digest/june00/export/ >> >> available for mpl? or some simple set of commands that will >> accomplish the same task? >

Re: [Matplotlib-users] scipy, matplotlib import errors

2008-10-04 Thread John [H2O]
Thanks. I haven't done this yet, but I think the problem may have been related to my locales setting. Presently all is working after editing /etc/sysconfig/i18n to update LC_CTYPE and other variables. Robert Kern-2 wrote: > > John [H2O] wrote: >> I wonder if I've misunderstood or made a mista

[Matplotlib-users] tcl/tk install problems

2008-10-04 Thread David J Strozzi
Folks, I am trying to install, in a private 'space', 0.98.3 on a linux x86-64 scientific cluster on which I am not the admin. tcl/tk is indeed installed, and I know where they are. matplotlib cannot find them. When running 'python setup.py build', tclConfig.sh and tkConfig.sh are on the pat

Re: [Matplotlib-users] vertical padding in legend

2008-10-04 Thread Eric Firing
Christopher Brown wrote: > Hi List, > > Attached is a closeup of two legends on a 2-panel figure. The first > legend has 10 plots listed, the second has 1. I have set each legend > identically: loc='upper right', pad=.3, handlelen=.1, handletextsep=.05. > But it seems that while the horizontal pad