The choice for math fonts is somewhat limited, because so few fonts have
the necessary symbols and spacing information, even if they are
reasonably complete Unicode-wise.
You basically have three supported choices, and one experimental choice,
set with the mathtext.fontset parameter:
cm: The TeX Computer Modern fonts
stix: A new math font designed to blend with Times
stixsans: A sans-serif math font (similar, but not identical to
either Helvetica or Arial)
custom: Provide a Unicode font -- this generally doesn't work very well.
As for your second question, it should have worked to set all
non-mathtext text to Helvetica. Do you have any other customizations in
your matplotlibrc file?
Cheers,
Mike
Berit Hinnemann wrote:
>
> Hi all,
>
> I have just upgraded to 0.93.1 (actually it turned out I did not even
> have to remove the 0.90 egg, python imports from 0.91 all by itself. I
> do not completely understand why, but that was a nice surprise...) and
> now the mixing of normal text and mathtext works nicely.
>
> Is it possible to use a different font than the latex-like font for
> the mathtext? It seems to be, as I found some lines relating to this
> in the matplotlibrc (the mathtext settings), but I am not sure how to
> set them. I would like a font which looks more like Arial or Helvetica
> text, does anybody know how to do this?
>
> Also, I tried to set the default font to Helvetica in the matplotlibrc
> file, but this does not affect the text in the plot. Is it enough to set
>
> font.family : sans-serif
> font.sans-serif : Helvetica
>
> to always use the Helvetica font, also for the axes? Or how do I set
> the font used for the tick labels?
>
> Any pointers would be much appreciated, and apologies if I should have
> overlooked prior posts or documentation! Thanks!
>
> Best regards, Berit
> ------------------------------------------------------------------------
> *Berit Hinnemann*
> Research Scientist | Characterization Department | Research & Development
>
> *Haldor Topsøe A/S*
> Nymøllevej 55
> DK-2800 Kgs. Lyngby
> Phone: +45 4527 2130 (direct)
>
> /Haldor Topsøe is market leading within heterogeneous catalysis and
> supplies catalysts and process design for oil refineries, chemical
> plants and the energy sector. The environment plays an important role
> in Topsøe's research and production, and through the introduction of
> new catalysts and technologies the company supports a more sustainable
> use of the world's resources. Annual revenues total DKK 3.5 billion
> generated by our 1,700 dedicated employees. For additional information
> please see our web site /*_www.topsoe.com_* <http://www.topsoe.com/>
>
> ------------------------------------------------------------------------
>
> This e-mail message (including attachments, if any) is confidential
> and may be privileged. It is intended only for the addressee.
> Any unauthorised distribution or disclosure is prohibited. Disclosure
> to anyone other than the intended recipient does not constitute waiver
> of privilege.
> If you have received this e-mail in error, please notify the sender by
> e-mail and delete it and any attachments from your computer system and
> records.
> HALDOR TOPSOE (_www.topsoe.com_ <http://www.topsoe.com/>)
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> [email protected]
> 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://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users