[Matplotlib-users] colorbar: format labels with mathtext

2011-01-18 Thread Stefan Mauerberger
Hi Everyone, I would like to format the labels of a colorbar with mathtext. I have tried a lot with all the cax.formatter.___ options but unfortunately I was not able to get it working. I am plotting some Data with col = ax.pcolorfast( ... ) after this I create a colorbar with cax = fig.

Re: [Matplotlib-users] tick formatter - floating axis

2010-11-11 Thread Stefan Mauerberger
ng_axes.GridHelperCurveLinear( tr, extremes=( 1, 2, > 1000, 2000 ), tick_formatter1 = None, tick_formatter2 = MyFormatter() ) > > Regards, > > -JJ > > > On Wed, Nov 10, 2010 at 10:17 PM, Stefan Mauerberger > wrote: > > Hello everyone, > > >

[Matplotlib-users] tick formatter - floating axis

2010-11-10 Thread Stefan Mauerberger
Hello everyone, I have a question regarding the formatting of ticks in a curved coordinate system. To create my plots I am useing the mpl_toolkits.axisartist.floating_axes.GridHelperCurveLinear() function. This works quite well but I have difficulties with formatting the axis. I am working in a p

Re: [Matplotlib-users] how to make a polar plot just of a section with grid

2010-10-21 Thread Stefan Mauerberger
Hi Frederick, thanks for your answer. The option *faceted* I already knew but this is not exactly what I want. Perhaps it would be possible to draw the grid without labels. My goal is to draw a grid with labels above the data. Similar to the example 'demo curvelinear grid'. Regards Stefan

[Matplotlib-users] how to make a polar plot just of a section with grid

2010-10-20 Thread Stefan Mauerberger
Hello everyone, I want to make a polar plot with grid not of the full circle but a section (e.g. r=[5:6], phi=[-20:30]). The result should look like this: http://homepages.physik.uni-muenchen.de/~Stefan.Mauerberger/example.png I have tried a lot and had also looked to the examples but my results

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 transpa