我试图用一个带有跟随轴的曲面图来绘制国债数据:
X=Maturity
Y=Dates (already in numeric form date2num)
Z=yield
我使用以下命令:
fig = plt.figure()
ax = fig.gca(projection='3d')
surf = ax.plot_surface(X, Y, Z, cmap=cm.coolwarm,linewidth=0, antialiased=False)
如何将Y轴显示为日期?Here is my plot, I already used date2num