ticklabel

作者: 榴莲气象 | 来源:发表于2019-01-01 21:38 被阅读7次

label size


import matplotlib.pyplot as plt

We prepare the plot

fig = plt.figure(1)

We define a fake subplot that is in fact only the plot.

plot = fig.add_subplot(111)

We change the fontsize of minor ticks label

plot.tick_params(axis='both', which='major', labelsize=10)
plot.tick_params(axis='both', which='minor', labelsize=8)

To specify both font size and rotation at the same time, try this:

plt.xticks(fontsize=14, rotation=90)


参考

相关文章

  • ticklabel

    label size import matplotlib.pyplot as plt We prepare the...

网友评论

      本文标题:ticklabel

      本文链接:https://www.haomeiwen.com/subject/xhpolqtx.html