Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-20 Thread Stefan Mauerberger
Ben, thanks a lot! Your way does exactly what I want. Scott, I do not understand your solution, unfortunately. I have already known the example from the gallery. But up to now, I have not dealt with masked arrays. Anyway ... Thanks a lot again. Stefan

[Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Stefan Mauerberger
Hi everyone, I am having trouble with colormaps unsing pcolormesh. I would like to plot and colorise a seismic wave field above a map. Plotting works fine but I do not know how to bring transparency into colormaps. For negative values I want the coloration being blue then it should become

Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Benjamin Root
On Tue, Oct 12, 2010 at 7:57 AM, Stefan Mauerberger stefan.mauerber...@mnet-online.de wrote: Hi everyone, I am having trouble with colormaps unsing pcolormesh. I would like to plot and colorise a seismic wave field above a map. Plotting works fine but I do not know how to bring transparency

Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Scott Sinclair
On 12 October 2010 14:57, Stefan Mauerberger stefan.mauerber...@mnet-online.de wrote: I am having trouble with colormaps unsing pcolormesh. I would like to plot and colorise a seismic wave field above a map. Plotting works fine but I do not know how to bring transparency into colormaps. For

Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Benjamin Root
On Tue, Oct 12, 2010 at 9:25 AM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Oct 12, 2010 at 7:57 AM, Stefan Mauerberger stefan.mauerber...@mnet-online.de wrote: Hi everyone, I am having trouble with colormaps unsing pcolormesh. I would like to plot and colorise a seismic wave field