From: Michael D. <md...@st...> - 2010-04-27 14:14:06
|
Mathtext is in a completely different font (Computer Modern), so it has a different x-height, even though it does have the same overall height. While there isn't a way to change the size of part of a Text object, you could put the math its own Text object and use the 'fontsize' kwarg to change its size. You might also see more font "harmony" by using the STiX math font (set the rcParam mathtext.fontset to 'stix') alongside Times, or by using Computer Modern everywhere by (if you have LaTeX installed), setting the rcParam text.usetex to True. Mike Konstantin Klementiev wrote: > Hello all, > > Does anyone know why mathtext is smaller than the regular text in the same > string? For example, see > http://matplotlib.sourceforge.net/users/text_intro.html > (equation E=mc^2) > > How can I make it of equal size? I don't see any mathtext size settings in > rcfile... > > Thanks in advance! > > Konstantin > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > 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 |