The default mathtext font should have the "times" symbol. Are you making any other changes that would affect the selection of mathtext fonts? (Can you please attach a copy of your matplotlibrc file?) If that looks ok, perhaps it isn't finding the math fonts correctly. There are a multitude of reasons that could be happening. It is sometimes helpful to set "verbose.level" to "debug-annoying" and then look at the logs to see what might be going on. Also, you could try deleting the fonts cache in ~/.matplotlib/fontManager.cache to force it to regenerate.
Cheers, Mike Matthias Michler wrote: > Hello list, > > the little example below seems to fail, can anybody help me? > I'm on Debian using the release 0.91.2. > > best regards and thanks in advance for any hints, > Matthias > > ------------------------------------------------------------------------------------------- > from matplotlib.ticker import ScalarFormatter > from matplotlib.pyplot import * > > ax = axes() > axis([0.0, 10**-7, 0, 10**-7]) > > ax.yaxis.set_major_formatter(ScalarFormatter(useMathText=True)) > > show() > ------------------------------------------------------------------------------------------------ > error message: > /scratch/michler/SOFT/lib/python2.4/site-packages/matplotlib/mathtext.py:722: > MathTextWarning: Unrecognized symbol '\times'. Substituting with a dummy > symbol. > % sym.encode('ascii', 'backslashreplace'), MathTextWarning) > > > the string '\times' is due to line > sciNotStr = r'{\times}'+self.format_data(10**self.orderOfMagnitude) > in function ScalarFormatter.get_offset > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users