简体   繁体   中英

Serif blackboard fonts in matplotlib

Matplotlib's blackboard LaTeX fonts seem to be sans-serif:

E在Matplotlib中使用mathbb渲染

This contrasts badly with pdfLaTeX's default rendition:

在LaTeX中使用mathbb渲染的E

Can I force matplotlib to use serif blackboard fonts?

You can customize fonts, colors, line weights, etc. using a matplotlibrc file. The sample they give is pretty huge, but scroll down a ways and you'll find the options for LaTeX. Once you have your file customized, save it in ~/.matplotlib/matplotlibrc and it'll be read automatically next time you import matplotlib.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM