摘要:
每个axes对象都有xaxis和yaxis属性,且xaxis和yaxis的每一个坐标轴都有主要刻度线/标签和次要刻度线/标签组成,标签位置通过一个Locator对象设置,标签格式通过一个Formatter设置。 plt.style.use('seaborn-whitegrid') #x轴和y轴设置成 阅读全文
posted @ 2022-01-08 18:40
溪奇的数据
阅读(4177)
评论(0)
推荐(0)
摘要:
坐标轴上下限设置 plt.plot(x, np.sin(x)) #设置坐标轴上下限 plt.xlim(-1, 11) plt.ylim(-1.5, 1.5) plt.plot(x, np.sin(x)) #逆序设置坐标轴上下限 plt.xlim(10, 0) plt.ylim(1.2, -1.2) 阅读全文
posted @ 2022-01-08 18:29
溪奇的数据
阅读(1055)
评论(0)
推荐(0)


浙公网安备 33010602011771号