Re: [Matplotlib-users] eps/pdf/svg contourf contours don't overlap properly with high resolution data

2010-01-03 Thread Jordan Dawe
> Jouni K. Sepp?nen wrote: > >> Jordan Dawe writes: >> >> >>> Contourf plots that I output in vector format files have little >>> triangular glitches at the contour boundaries if the contoured array >>> is larger than about 200x200. Th

Re: [Matplotlib-users] NetCDF input/output/plotting using, Matplotlib w/ Basemap

2008-03-08 Thread Jordan Dawe
I use the python-netcdf4 package in linux. http://code.google.com/p/netcdf4-python/ You can make a netcdf3-compatible version of the library by installing with: python setup-nc3.py install Jordan - This SF.net email is

Re: [Matplotlib-users] plot order

2008-01-24 Thread Jordan Dawe
Eric Firing wrote: > > Maybe contour, contourf, and any similar plotting commands that do not > support zorder as a kwarg should do so? I am not sure if this is > needed often enough to warrant the extra code and documentation. I can't speak for other people, but I use this kind of functionality

Re: [Matplotlib-users] plot order

2008-01-24 Thread Jordan Dawe
> > pc = contour(random.rand(10,10)) > pcf = contourf(random.rand(10,10), cmap=cm.gray) > # now the contours are on top > > for l in pc.collections: > l.set_zorder(-100) > > draw() > # now the contours are on the bottom Well, that's certainly kludgey, but it worked great. Thanks. Jordan ---

[Matplotlib-users] plot order

2008-01-23 Thread Jordan Dawe
Ok, I've spent a while searching through the mailing list archives and I can't find an answer for this relatively simple problem. I've plotted a series of contourf and contour plots on the same axes. First I plot a contourf. Next a contour on top of it. Then I want a contourf plotted on top of

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-18 Thread Jordan Dawe
Michael Droettboom wrote: > This is going to be a tricky one, particularly since I don't have > access to Illustrator. All I know is the eps and pdf output of > simple_plot.py looks fine for me in ghostscript, acroread, xpdf and > evince. Even text select copy and paste works fine in acroread

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-18 Thread Jordan Dawe
Michael Droettboom wrote: > I suspect an explicit conversion to str may be required on your > configuration/platform. (I think you mentioned you were using Windows). Indeed I am. > Can you change line 592 of mathtext.py to read: > > font = FT2Font(str(basename)) > > and let me know if that fi

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-17 Thread Jordan Dawe
Rob Hetland wrote: > I really like Arev Sans, but others like the new STIX fonts. This > setup is for Arev Sans. The important stuff is what begins with > mathtext. If you want serif fonts, this should be enough to get you > started on customizing. Just make sure whatever fontset you pick ha

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-16 Thread Jordan Dawe
Setting ps.useafm = True while ps.fonttype = 42 allows illustrator to open the eps files again and gives me back text editing capability, but I don't have any control over the typeface anymore, it just defaults to Helvetica. Jordan --

[Matplotlib-users] TrueType font embedding in eps problem.

2008-01-16 Thread Jordan Dawe
Ok... I'm running python 2.5 on winxp. I recently upgraded from matplotlib 88ish to 91.1, and now the font embedding in eps files no longer works for me: all fonts end up as paths when I open an eps file in illustrator, and I can't do any font editing like I could before I upgraded. I found a

[Matplotlib-users] matplotlib installation problem

2008-01-04 Thread Jordan Dawe
Ok, I compiled matplotlib from source, and installed it into my home directory. import matplotlib works fine, but from pylab import * returns >>> from pylab import * Traceback (most recent call last): File "", line 1, in File "/home/users/freedryk//lib/python/pylab.py", line 1, in fro

[Matplotlib-users] plotting a pcolor over a contourf

2007-08-31 Thread Jordan Dawe
I've been trying to plot a pcolor over a contourf with a masked array in the pcolor so that parts of the contour will show through underneath, but whenever I try to do this the pcolor wipes out the contourf. I can do this fine with a contourf over another contourf, but I'm plotting model topog

[Matplotlib-users] contour and contourf order

2007-04-13 Thread Jordan Dawe
So I've got a plot with a contour and a contourf on it. The contour always appears on top of the contourf, no matter what order I issue the commands in; I want to use the contourf to block out part of the contour. ContourSets don't appear to have a zorder. How do I do this? Jordan -

[Matplotlib-users] color normaliztion for an contourf plot

2006-08-24 Thread Jordan Dawe
So I have a contourf plot and I am resetting the ylims so as to only display a subset of the full contourf plot. Is there anyway to set norm and the colorbar so they take their colormapping settings using the data currently on display? By which I mean: the full dataset has a range of 260-320.