matplotlib - 如何在 matplotlib 或 seaborn 中使用 Hershey 字体?

标签 matplotlib ipython seaborn

我已经从 IDL、Supermongo 绘图包过渡到 iPython 的多功能选项(Matplotlib 和 Seaborn)。但是,我仍然偏爱 IDL 和 SM 中广泛使用 Hershey 字体的排版。它们非常适合可视化,简洁且设计精良。

这里有几个 Hershey 字体的例子:

http://www.exelisvis.com/docs/Using_Hershey_Vector_Fon.html

有没有办法将它们与 seaborn 和 matplotlib 结合起来?首先将它们制作成 True Type 字体并安装它们以便这些包中的字体选择器可以使用它们是否有意义?

在 iPython 中已经非常挑剔的 LaTeX 排版是否能很好地发挥作用?

最佳答案

是的,你可以。感谢 Hershey 字体的 TTF 翻译。

https://github.com/yangcht/Hershey_font_TTF

只需下载此字体并在 matplotlib 中选择此字体即可。

这里是使用这个字体后的例子。

enter image description here

关于matplotlib - 如何在 matplotlib 或 seaborn 中使用 Hershey 字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32315831/

相关文章:

python - 将字符串 xticks 拆分为多行(matplotlib)

python - 如何获取使用 "melt"分组的 seaborn 计数图中条形上方的值

python - 类型错误 : __init__() got an unexpected keyword argument 'gridspec_kw'

python - 让 .eq 忽略 NAN 值

python - 将 SQL 数据加载到 iPython 中

python - IPython Notebook 中的 SQLAlchemy + SQLite 锁定

Python 排序图

python - 堆叠条形图的边缘被切断

python-3.x - python : Plotting multiple Scatter plots in one figure

python - 正确,Matplotlib 中的 "full length"左右箭头?