1

I am trying to plot Treasuries data with a surface plot with the following axis:

X=Maturity 
Y=Dates (already in numeric form date2num)
Z=yield

I am using the following commands:

fig = plt.figure()
ax = fig.gca(projection='3d')
surf = ax.plot_surface(X, Y, Z, cmap=cm.coolwarm,linewidth=0, antialiased=False)

How can I display the Y axis as dates?Here is my plot, I already used date2num

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.