如何在 matplotlib 中更改轴权重(使轴更粗)?
from pylab import *
x = [5,7,5,9,11,14]
y = [4,5,3,11,15,14]
scatter(x, y, s=50, color='green',marker='h')
show()
最佳答案
您可以在 Matplotlib 中设置所谓的脊柱(轴的一侧)的宽度:
fig, ax = plt.subplots()
ax.plot(np.random.randn(100).cumsum())
# The spines
plt.setp(ax.spines.values(), linewidth=3)
# The ticks
ax.xaxis.set_tick_params(width=3)
ax.yaxis.set_tick_params(width=3)
关于python - 改变 matplotlib 中的轴权重,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19949126/