[Matplotlib-users] _mathtext_data.py uppercase greek

2006-07-13 Thread Steve Schmerler
In case there is some interest, I changed _mathtext_data.py to support nonslanted uppercase greek characters rather (\Omega & stuff, see .diff). BTW, in _mathtext_data.py there is a line font = FT2Font('/usr/local/share/matplotlib/cmr10.ttf') I think this is a obsolete location, right? (at le

Re: [Matplotlib-users] Can you set numerix in a script?

2006-07-13 Thread Eric Firing
Christopher Barker wrote: > Hi all, > > I'm working on a MPL build for OS-X, and I'd like to be able to write > scripts that will test as much as I can. In particular, I want to have > this build work with Numeric, numarray and numpy. > > To script that test, I need to be able to set numerix in

Re: [Matplotlib-users] Compiled against version 90709 of C-API... numpy is 90907

2006-07-13 Thread Darren Dale
On Thursday 13 July 2006 8:08 pm, Brian Wilfley wrote: > Hello, > > I've just come across matplotlib and I'm very impressed. It looks very > useful. > > I just installed on a WinXP machine: > enthon-python2.4-1.0.0.beta3.exe > matplotlib-0.87.4.win32-py2.4.exe. > > The install went fine. I also put

[Matplotlib-users] Compiled against version 90709 of C-API... numpy is 90907

2006-07-13 Thread Brian Wilfley
Hello, I've just come across matplotlib and I'm very impressed. It looks very useful. I just installed on a WinXP machine: enthon-python2.4-1.0.0.beta3.exe matplotlib-0.87.4.win32-py2.4.exe. The install went fine. I also put the default matplotlibrc file into my %HOME%\.matplotlib. I ran ipytho

Re: [Matplotlib-users] Can you set numerix in a script?

2006-07-13 Thread Gary Ruben
Christopher Barker wrote: > To script that test, I need to be able to set numerix in a script, > rather than in matplotlibrc. Can that be done? Yep, just do from pylab import * rcParams['numerix'] = 'numpy' > While we're at it, it would be great if ANY of the config items in > matplotlibrc cou

Re: [Matplotlib-users] problem with enthon's mpl.

2006-07-13 Thread Gary Ruben
Hi Rob, A couple of us reported this last week on the scipy list and I think it should be fixed in the version which was just released by Enthought, so if your friend will persevere and grab the latest version, it should be OK - I hope to try it out today. Gary R. Rob Hetland wrote: > > I am

[Matplotlib-users] Can you set numerix in a script?

2006-07-13 Thread Christopher Barker
Hi all, I'm working on a MPL build for OS-X, and I'd like to be able to write scripts that will test as much as I can. In particular, I want to have this build work with Numeric, numarray and numpy. To script that test, I need to be able to set numerix in a script, rather than in matplotlibrc.

Re: [Matplotlib-users] Bar chart - labeling the bars?

2006-07-13 Thread Asheesh Laroia
On Thu, 13 Jul 2006, John Hunter wrote: > for x,y in zip(xs, ys): >ax.text(x+width/2., y, '%1.1f'%y, va='bottom', ha='center') John, that did the trick perfectly! Thanks a million! -- Asheesh. -- Tuesday After Lunch is the cosmic time of the week. ---

Re: [Matplotlib-users] Bar chart - labeling the bars?

2006-07-13 Thread John Hunter
> "Asheesh" == Asheesh Laroia <[EMAIL PROTECTED]> writes: Asheesh> How do I show the *values* of the bars? I'm sorry if I'm Asheesh> not using the right terminology. Thanks all! You need to create text instances at the places you want the bar labels -- something like from pylab impo

Re: [Matplotlib-users] Bar chart - labeling the bars?

2006-07-13 Thread Asheesh Laroia
On Thu, 13 Jul 2006, PGM wrote: > Vertical bars, I assume ? Yup. > Please check the screenshot page: > http://matplotlib.sourceforge.net/screenshots/barchart_demo.py > should be a big help. It doesn't show how to put numbers above the bars. It shows a lot of other things, and it was helpful f

[Matplotlib-users] problem with enthon's mpl.

2006-07-13 Thread Rob Hetland
I am trying to help somebody get going on numpy/scipy/mpl.  She is having trouble when starting enthon's matplotlib.  She is a PC user (I am a unix/mac person), so I really don't know where to start finding the problem.  Below is her note to me.  Any advice would be helpful."""I got the enthought p

Re: [Matplotlib-users] Bar chart - labeling the bars?

2006-07-13 Thread PGM
On Thursday 13 July 2006 14:05, Asheesh Laroia wrote: > I'm making a bar chart that shows percentages (values from 0 to 100), and > I'd like to have the actual bars labeled with their values. > > I don't see how to do this, though it seems that countour diagrams have > the clabel() function to do t

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-13 Thread Eric Firing
Mark Bakker wrote: > Eric - > > To be honest, I think the native array storage order matters a lot. > When you have a large dataset, transposing the matrix is not a cheap > command. No, in this context it is very cheap relative to the rest of the plotting. > > But I also understand the logic o

[Matplotlib-users] Bar chart - labeling the bars?

2006-07-13 Thread Asheesh Laroia
I'm making a bar chart that shows percentages (values from 0 to 100), and I'd like to have the actual bars labeled with their values. I don't see how to do this, though it seems that countour diagrams have the clabel() function to do this. Is it possible with matplotlib? Thanks! -- Asheesh.

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-13 Thread Eric Firing
Stefan van der Walt wrote: > On Thu, Jul 13, 2006 at 10:34:11AM +0200, Mark Bakker wrote: > >>To be honest, I think the native array storage order matters a lot. >>When you have a large dataset, transposing the matrix is not a cheap >>command. > > > If you use numpy, transposing is cheap. You s

Re: [Matplotlib-users] Legend: Space between text and upper bo

2006-07-13 Thread Till Wagner
Hi Benoit, leg.draw_frame(False) might be an option, but I use self.axes.grid(True) and when the legend has no borders, the grid is shown through the text and makes ist nearly unredable. -- Till Wagner > why don't you try to remove the legend frame? >> self.axes.plot(x_value, y_value, 'k-', >

Re: [Matplotlib-users] TextWithDash: self._mytext AttributeError

2006-07-13 Thread Charlie Moad
On 7/13/06, John Hunter <[EMAIL PROTECTED]> wrote: > > "Charlie" == Charlie Moad <[EMAIL PROTECTED]> writes: > > Charlie> Thanks for the note. This is a known issue and has been > Charlie> addressed in svn. The mplot modules have been added to > Charlie> svn and are being worked o

Re: [Matplotlib-users] TextWithDash: self._mytext AttributeError

2006-07-13 Thread John Hunter
> "Charlie" == Charlie Moad <[EMAIL PROTECTED]> writes: Charlie> Thanks for the note. This is a known issue and has been Charlie> addressed in svn. The mplot modules have been added to Charlie> svn and are being worked on. Actually, these changes are in 0.87.4, I think. JDH

Re: [Matplotlib-users] TextWithDash: self._mytext AttributeError

2006-07-13 Thread Charlie Moad
Thanks for the note. This is a known issue and has been addressed in svn. The mplot modules have been added to svn and are being worked on. - Charlie On 7/12/06, Andrew M. Bradley <[EMAIL PROTECTED]> wrote: > Hi: > > I obtain the following error when saving a figure to postscript after > runnin

Re: [Matplotlib-users] eps export files crash text processors

2006-07-13 Thread Darren Dale
On Thursday 13 July 2006 10:32, Martin Manns wrote: > > The bigger problem is that each file format has basic characteristics > > and limitations. If you draw a million markers and line segments, you > > are inevitably going to have a big postscript file, unless the > > postscript backend somehow

[Matplotlib-users] TextWithDash: self._mytext AttributeError

2006-07-13 Thread Andrew M. Bradley
Hi: I obtain the following error when saving a figure to postscript after running one of the test routines in mplot3d.py: >>> from numpy import *; import mpl3d.mplot3d as p3; import pylab as p >>> p3.test1() >>> p.savefig('test1') Traceback (most recent call last): File "", line 1, in ? File

[Matplotlib-users] Gentoo ebuild [wasRe: eps export files crash text processors]

2006-07-13 Thread PGM
> > I suggest upgrading to 0.87.3. > > However, I still do see no working Gentoo ebuild. Is there any out there? You can find one at http://bugs.gentoo.org/show_bug.cgi?id=136429 Problem is that you'd have to get the whole gentooscience overlay, so, here's the matplotlib ebuild and the correspo

Re: [Matplotlib-users] eps export files crash text processors

2006-07-13 Thread Martin Manns
Hi all: > > When I use matplotlib for a scatter plot with both dots and connecting > > lines, the exported eps file is huge, if the distances between many points > > are small. I think of this as a bug, since no preview tiff is included in > > the generated eps and a variety of text processing app

Re: [Matplotlib-users] Legend: Space between text and upper border

2006-07-13 Thread Benoit Donnet
Hi, why don't you try to remove the legend frame? > self.axes.plot(x_value, y_value, 'k-', >label = labelLegend) > > self.axes.legend(loc = 'best', pad = 0.1) > leg = self.axes.get_legend() leg.draw_frame(False) You won't have any problem with the legend box anymore. but mayb

Re: [Matplotlib-users] Legend: Space between text and upper border

2006-07-13 Thread Till Wagner
Hi Darren, > You can set legend.pad in your rc settings, or you > can change the legend's pad property either when you > create it or after the fact > > l=legend(['ok'], pad=0.5) > l.pad=1.5 > draw() But pad seems to have mainly an effect on the space between the text and the left and right bord

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-13 Thread Stefan van der Walt
On Thu, Jul 13, 2006 at 07:45:37AM -0500, John Hunter wrote: > > "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: > Eric> To reply more directly to your proposal now that I have > Eric> thought about it more: although I see the logic in it, I > Eric> don't see much gain from your N

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-13 Thread Alan G Isaac
On Thu, 13 Jul 2006, John Hunter apparently wrote: > from numpy import rand That has become: from numpy.random import rand Cheers, Alan Isaac - Using Tomcat but need to do more? Need to support web services, security

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-13 Thread John Hunter
> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: Eric> To reply more directly to your proposal now that I have Eric> thought about it more: although I see the logic in it, I Eric> don't see much gain from your Nx2 idea; it not very hard to Eric> simply write P.plot(z[:,0], z[

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-13 Thread Darren Dale
On Thursday 13 July 2006 4:34 am, Mark Bakker wrote: > To be honest, I think the native array storage order matters a lot. [...] > However, a 1D vector in Python is by default a row, while in Matlab it is a > column. > What are you going to do if a 1D row is given as first argument and a > matrix

Re: [Matplotlib-users] plot command: more flexible argument handling

2006-07-13 Thread Stefan van der Walt
On Wed, Jul 12, 2006 at 01:19:41PM -1000, Eric Firing wrote: > To summarize, the options seem to be: > > 1) Leave plot argument parsing alone. > 2) Accept an Nx2 array in place of a pair of arguments containing x and y. > > 3) Implement the Matlab model. > 4) Implement the Matlab model, but takin

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-13 Thread Stefan van der Walt
On Thu, Jul 13, 2006 at 10:34:11AM +0200, Mark Bakker wrote: > To be honest, I think the native array storage order matters a lot. > When you have a large dataset, transposing the matrix is not a cheap > command. If you use numpy, transposing is cheap. You see it when you try import numpy as N z

Re: [Matplotlib-users] plot command: more flexible argument handling

2006-07-13 Thread Alan G Isaac
On Wed, 12 Jul 2006, Eric Firing apparently wrote: > 3) Implement the Matlab model. +1 Cheers, Alan Isaac PS This is fairly close to the (more constrained) GAUSS model. - Using Tomcat but need to do more? Need to supp

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-13 Thread Stefan van der Walt
On Wed, Jul 12, 2006 at 05:59:16PM -1000, Eric Firing wrote: > To reply more directly to your proposal now that I have thought about it > more: although I see the logic in it, I don't see much gain from your > Nx2 idea; it not very hard to simply write P.plot(z[:,0], z[:,1]). > Furthermore, impl

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-13 Thread Stefan van der Walt
Hi Eric On Wed, Jul 12, 2006 at 05:59:16PM -1000, Eric Firing wrote: > To reply more directly to your proposal now that I have thought about it > more: although I see the logic in it, I don't see much gain from your > Nx2 idea; it not very hard to simply write P.plot(z[:,0], z[:,1]). > Furtherm

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-13 Thread Mark Bakker
Eric - To be honest, I think the native array storage order matters a lot. When you have a large dataset, transposing the matrix is not a cheap command. But I also understand the logic of plotting column against column. However, a 1D vector in Python is by default a row, while in Matlab it is a