|
From: John H. <jdh...@ac...> - 2005-09-04 03:43:21
|
>>>>> "arnd" == arnd baecker <arn...@we...> writes:
arnd> the y-axis has a different font (italic) than the x-axis
arnd> (sans-serif). Looking at the code, this is because it is
arnd> set as math text ($ ...$). Is there a trick to ensure a
arnd> sans-serif font for the y-axis? (I would like to use
arnd> matplotlib plots in a presentation and sans-serif fonts are
arnd> better suited for this.)
What version of mpl are you using? I thought in a previous post you
said you were using cvs (could be mistaken). I wrote an extension to
text.py to special case exponential formatting specifically to solve
the mismatched fonts problem. So make sure you are using a current
problem of matplotlib and if you still have the problem check your
input against the regex in matplotlib.text.Text
# special case superscripting to speedup logplots
_rgxsuper = re.compile('\$([\-+0-9]+)\^\{(-?[0-9]+)\}\$')
If you can fix up this expression to include your case that would be
most helpful.
Thanks,
JDH
|