plt.ylabel("流量($\mathregular{m^3}$/s)")
#绘图坐标轴添加上标$\mathregular{m^3}$,若是下标m_3
不加mathregular的话是斜体
plt.ylabel("流量($\mathregular{m^3}$/s)")
#绘图坐标轴添加上标$\mathregular{m^3}$,若是下标m_3
不加mathregular的话是斜体
《【python】绘图坐标轴标题中包含上标或下标.doc》
下载本文的Word格式文档,以方便收藏与打印。