上面的答案无效,如注释中所述。我建议使用刺。
import matplotlib.pyplot as pltfig = plt.figure()ax = fig.add_subplot(111)# you can change each line separately, like:#ax.spines['right'].set_linewidth(0.5)# to change all, just write:for axis in ['top','bottom','left','right']: ax.spines[axis].set_linewidth(0.5)plt.show()# see more about spines at:#http://matplotlib.org/api/spines_api.html#http://matplotlib.org/examples/pylab_examples/multiple_yaxis_with_spines.html
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)