Modify tick label text

前端 未结 10 1457
遥遥无期
遥遥无期 2020-11-22 07:13

I want to make some modifications to a few selected tick labels in a plot.

For example, if I do:

label = axes.yaxis.get_major_ticks()[2].label
label         


        
10条回答
  •  不要未来只要你来
    2020-11-22 08:16

    Try this :

      fig,axis = plt.subplots(nrows=1,ncols=1,figsize=(13,6),sharex=True)
      axis.set_xticklabels(['0', 'testing', '10000', '20000', '30000'],fontsize=22)
    

提交回复
热议问题