Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
> I think that what you want can be achieved more simply than contouring. > I've attached a quick example of how I would do this. I'm assuming that > the data has the same form as pcolormesh, i.e, the z values are measured > at grid centers but we have coordinate of the edges. This means that we

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
Am Di 28 Feb 2012 19:23:14 CET schrieb Eric Firing: > On 02/28/2012 08:08 AM, Andreas H. wrote: >> Am 28.02.2012 18:56, schrieb Eric Firing: >>> On 02/28/2012 06:28 AM, Andreas H. wrote: >>>>>> On Tuesday, February 28, 2012, Andreas H. wrote: >>>

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
Am 28.02.2012 18:56, schrieb Eric Firing: > On 02/28/2012 06:28 AM, Andreas H. wrote: >>>> On Tuesday, February 28, 2012, Andreas H. wrote: >>>> >>>>> Good morning, >>>>> >>>>> I'm creating the attached plot using pco

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
>> On Tuesday, February 28, 2012, Andreas H. wrote: >> >>> Good morning, >>> >>> I'm creating the attached plot using pcolormesh(). What I would like to >>> do now is draw contour lines at +/- 2.5%, which follow the grid edges. >>> &g

[Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Andreas H.
Good morning, I'm creating the attached plot using pcolormesh(). What I would like to do now is draw contour lines at +/- 2.5%, which follow the grid edges. The problem is that when I use contour(), the lines drawn do not follow the grid edges but seem to be interpolated somehow. Do you have an

Re: [Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-10 Thread Andreas H.
Thanks Jeff! I really should have looked at the docs more carefully. >> I suppose pcolor could be modified to fill the masked polygons with the >> color indicated by cmap.set_bad - I think that's what most people would >> expect. Yes, I definitely second this. It would produce more expected resu

[Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-09 Thread Andreas H.
Hi, I'm trying to use pcolor on a masked array. I would like masked elements to show up in a special color. I have written some code, but it does not seem to work: I would appreciate any help :) Cheers, Andreas. ---8<--- import matplotlib as mpl import matplotlib.pyplot as plt from numpy

Re: [Matplotlib-users] Using otf fonts in matplotlib

2011-10-10 Thread Andreas H.
>> I would like to use .otf fonts for typesetting text (axes, titles, >> labels, >> legends, ...) in matplotlib. Is this possible? If yes, how? > Yes. Put the font somewhere in your font search path. (Where that > would be depends on your platform, but for user-local fonts, use > "~/.fonts" on Li

[Matplotlib-users] Using otf fonts in matplotlib

2011-10-10 Thread Andreas H.
Hi, I would like to use .otf fonts for typesetting text (axes, titles, labels, legends, ...) in matplotlib. Is this possible? If yes, how? If not directly, perhaps via XeTeX? Cheers, Andreas. -- All the data continuousl