加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

matplotlib坐标轴label的上标或下标设置

(2018-05-06 10:53:04)
标签:

python绘图

分类: python

To make subscripts and superscripts, use the '_' (下标)and '^'(上标) symbols. (r'$\alpha_i > \beta_i$'),用两个$引起来。

但是所选的label的字体默认为italics for mathematical symbols.

我们所需要的times new Roman..........帮助中有很多改变字体的命令,其中\mathregular命令将字体转为常规文本,根据全局字体设置决定是否为Times new roman..

 举例:(g C/$\mathregular{m^2}$)'=g C/m2  如果是m^2 m^-2,则$\mathregular{m^2}$ $\mathregular{m^{-2}}$.可以看出需要将-2用{ }括起.

 /questions/21226868/superscript-in-python-plots

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有