草庐IT

polarization

全部标签

python + matplotlib : how to insert more space between the axis and the tick labels in a polar chart?

我正在尝试使用matplotlib和python2.7制作极坐标图,但我正在努力研究如何增加同一轴的X轴和刻度标签之间的空间。正如您在图片上看到的,12:00和6:00的标签看起来很好,我希望所有其他标签都有相同的空间。我试过ax.xaxis.LABELPAD=10但是没有任何效果。这是我的代码(抱歉弄得一团糟......):importnumpyasnpimportmatplotlibasmplmpl.use('Agg')importmatplotlib.pyplotaspltimportmatplotlib.datesfrommatplotlib.datesimportYearLo
12