Superscript in Python plots

后端 未结 3 521
北海茫月
北海茫月 2020-12-13 06:18

I want to label my x axis at follows :

pylab.xlabel(\'metres 10^1\')

But I don\'t want to have the ^ symbol included .

pyla         


        
3条回答
  •  星月不相逢
    2020-12-13 06:56

    If you want to write unit per meter (m^-1), use $m^{-1}$), which means -1 inbetween {}

    Example: plt.ylabel("Specific Storage Values ($m^{-1}$)", fontsize = 12 )

提交回复
热议问题