I'm not sure if the default formatter needs to be changed. However, you may try
import matplotlib.ticker as ticker formatter=ticker.LogFormatterMathtext() colorbar(format=formatter) which will render colorbar ticklabels with mathtext mode. Regards, -JJ On Fri, Apr 16, 2010 at 3:56 AM, Yves Revaz <yves.re...@epfl.ch> wrote: > Dear list, > > I want to plot colored points using scatter, with the > color of points corresponding to the log of the z value of the points. > > the corresponding scatter command is : > > scatter(x,y,c=z,norm=colors.LogNorm()) > > unfortunately, then I then draw a colorbar simply calling > > colorbar() > > the fonts used for the color bar is no longer in latex mode, > as it was if I use a lin scale in scatter(), i.e., norm=None. > > > Is it a bug ? > > Any solution ? > > Thanks, > > yves > > > > > -- > (o o) > --------------------------------------------oOO--(_)--OOo------- > Dr. Yves Revaz > Laboratory of Astrophysics EPFL > Observatoire de Sauverny Tel : ++ 41 22 379 24 28 > 51. Ch. des Maillettes Fax : ++ 41 22 379 22 05 > 1290 Sauverny e-mail : yves.re...@epfl.ch > SWITZERLAND Web : http://www.lunix.ch/revaz/ > ---------------------------------------------------------------- > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users