Re: [Matplotlib-users] possible bug in font manager: RuntimeError: Not an AFM file

2008-08-25 Thread Marco A. S. Netto
Hi Thanks for the replies. I replaced all the fonts of my script to Helvetica and it works fine. Yes, I'm using ps.fonttype=3. The files are pretty small. But I still couldn't find out why matplotlib was getting that ttf Vera... Cheers, Marco On Tue, Aug 26, 2008 at 4:48 AM, Michael Droettboom

Re: [Matplotlib-users] SVG backend fails with locale change

2008-08-25 Thread Michael Droettboom
Thanks for spotting this. I don't think a lot of us ever use non-English locales, so that's fallen through the cracks. backend_svg.py was using '%s' to convert floats, to limit the number of digits written to the file. This works fine with regular floats (since they do not follow the locale u

[Matplotlib-users] SVG backend fails with locale change

2008-08-25 Thread Mathieu Leplatre
Hi, If I change the locale using cairo backend, the result is fine. But with SVG backend, every objects collapse on top-left corner. As you can see here : http://mathieu-leplatre.info/media/matplotlib-svg/localechange-svg.svg I exported it to png with inkscape to reveal objects outside of frame

Re: [Matplotlib-users] possible bug in font manager: RuntimeError: Not an AFM file

2008-08-25 Thread Alan G Isaac
On Mon, 25 Aug 2008, Michael Droettboom apparently wrote: > The closest thing to Arial in the standard PS fonts is > Helvetica. OT: Just a reminder that this is because Arial was designed as a Helvetica clone for Windows users. Cheers, Alan Isaac ---

Re: [Matplotlib-users] possible bug in font manager: RuntimeError: Not an AFM file

2008-08-25 Thread Michael Droettboom
The "useafm" option is designed to work with the 14 standard Postscript fonts. I suppose it's possible to use a third-party afm, but such a thing would be extremely rare. The closest thing to Arial in the standard PS fonts is Helvetica. But yes, this is a bug, only in that the error message c

Re: [Matplotlib-users] Slow drawing of many lines in Basemap

2008-08-25 Thread Zane Selvans
On Aug 22, 2008, at 5:08 AM, Jeff Whitaker wrote: > Zane Selvans wrote: >> I'm drawing several hundred lines at a time, each consisting of >> 10-100 points, and it takes a couple of minutes for them all to >> display, which makes me think I must be doing something stupid. >> > Zane: You ca

[Matplotlib-users] Problem with loglog and ls='steps'

2008-08-25 Thread Nicolas Champavert
Hi, I have a problem with the loglog function with ls='steps' (matplotlib version: 0.98.3). When I try to plot arrays with loglog(x,y,ls='steps'), nothing is drawn whereas loglog(x,y) and plot(x,y,ls='steps'): x=[10.,20.,30.,40.,50.] y=[0.09,0.02,0.02,0.03,0.01] pylab.loglog(x,y) #it works pyl

Re: [Matplotlib-users] ylim does not work

2008-08-25 Thread John Hunter
On Fri, Aug 15, 2008 at 10:39 AM, CliftonH <[EMAIL PROTECTED]> wrote: > I'm plotting data that I get out of a database, which works fine. The only > thing that doesn't work, although it works with any other simple plot, is > the xlim()- and ylim()-function. > ylim(-9,13) > xlim(-2,25) > axhline(c

[Matplotlib-users] trouble compiling basemap

2008-08-25 Thread Lisa Tauxe
I've installed the Enthought Python Distribution for Mac OS on my MacOS 10.4 Intel machine. when i try to install basemap-0.99.1 I get this error: gcc: unrecognized option '-no-cpp-precomp' cc1: error: unrecognized command line option "-mno-fused-madd" cc1: error: unrecognized command line op

[Matplotlib-users] Can't pick on various scatter markers

2008-08-25 Thread Kyle Whitmer
I'm having trouble using picker on a scatter plots with various markers (e.g. + and x). It works with the plot command fine. What am I missing? Sample code below. import numpy import pylab def onpick(event): print 'Pick:',event.ind fig = pylab.figure() ax = fig.add_subplot(111) x1,y1 = nump

[Matplotlib-users] masking values in quiver plot

2008-08-25 Thread Michael Röttger
Hi, maybe I've misunderstood something concerning quiver plots: I want to exclude some data from a quiver plot. Here's an example: 8< import numpy as N import pylab as pl import matplotlib.numerix.ma as ma # prepare data X,Y = pl.meshgrid(range(5),range(5)) angles = pl.r

Re: [Matplotlib-users] compiling basemap.

2008-08-25 Thread Lisa Tauxe
I've installed the Enthought Python Distribution for Mac OS on my MacOS 10.4 Intel machine. when i try to install basemap-0.99.1 I get this error: gcc: unrecognized option '-no-cpp-precomp' cc1: error: unrecognized command line option "-mno-fused-madd" cc1: error: unrecognized command line op

Re: [Matplotlib-users] ylim does not work

2008-08-25 Thread CliftonH
CliftonH wrote: > > Hello, > I'm new to this forum, so please forgive me if I'm fogetting any > information. > I use python 2.5 and matplotlib version 0.91.2.0005. > I'm plotting data that I get out of a database, which works fine. The only > thing that doesn't work, although it works with any

[Matplotlib-users] ylim does not work

2008-08-25 Thread CliftonH
Hello, I'm new to this forum, so please forgive me if I'm fogetting any information. I use python 2.5 and matplotlib version 0.91.2.0005. I'm plotting data that I get out of a database, which works fine. The only thing that doesn't work, although it works with any other simple plot, is the xlim()-