当前位置:   article > 正文

matplotlib 设置字体_matplotlib 字体

matplotlib 字体
import numpy as np 
import matplotlib.pyplot as plt

plt.figure(figsize=[15,8])

X= np.linspace(-2*np.pi,2*np.pi)
Y= np.sin(X)
plt.scatter(X, Y, label = 'RealValue')
#plt.plot(X, func(X, a, b), 'red', label = 'CurveLine')
plt.title("station", fontdict={'family' : 'Times New Roman', 'size'   : 16})
plt.ylabel('Clocks($\mu S$)', fontdict={'family' : 'Times New Roman', 'size'   : 16})
plt.xlabel('Time', fontdict={'family' : 'Times New Roman', 'size'   : 16})
plt.yticks(fontproperties = 'Times New Roman', size = 14)
plt.xticks(fontproperties = 'Times New Roman', size = 14)
plt.legend(prop={'family' : 'Times New Roman', 'size'   : 16})
#plt.savefig('./stationClocks/' + station + '.ps', dpi = 200)
plt.show()

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

记录一下,我后面得自己改到scanpy上面去

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/423164
推荐阅读
相关标签
  

闽ICP备14008679号