import matplotlibpyplot as plt# 设置字体样式为Times New RomanpltrcParamsfontfamily = Times New Roman# 创建数据partition = 6 7 8customer_scale = 100 120 80average_cost = 10 12 15# 绘制折线图pltplotpartition customer_s
您可以尝试使用plt.rcParams['axes.linewidth']来设置坐标轴的粗细,例如:
plt.rcParams['axes.linewidth'] = 1.5
将线宽设置为1.5可以使坐标轴加粗一些。然后再显示图形:
plt.show()
这样应该就能够看到加粗的坐标轴了。
原文地址: https://www.cveoy.top/t/topic/ionS 著作权归作者所有。请勿转载和采集!