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 jd...@eos.ubc.ca 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. The same files in png format are perfect, even at very

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

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 in

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 fixes

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 has

[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

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] 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 stdin, line 1, in module File /home/users/freedryk//lib/python/pylab.py, line 1, in

[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