Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Problem
I would like to see support for interpolation inplot_surface
whenfacecolors
is provided, similar to how interpolation works forimshow
.
Code for intended solution:
importnumpyasnpimportmatplotlib.pyplotaspltX=np.array([[0,1,2],[0,1,2],[0,1,2]])Y=np.array([[2,2,2],[1,1,1],[0,0,0]])Z=np.array([[4,3,2],[3,2,1],[2,1,0]])C=np.array([[(1,0,0),(1,1,0),(1,0.5,0)],[(0,0,1),(0,1,1),(0,1,0.5)],[(0,0,1),(1,0,1),(0.5,0,1)]])fig,ax=plt.subplots(subplot_kw= {"projection":"3d"})ax.plot_surface(X,Y,Z,shade=False,facecolors=C,interpolation="bicubic")plt.show()
Actual outcome:AttributeError: Poly3DCollection.set() got an unexpected keyword argument 'interpolation'