Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ENH]: Surface plot does not support interpolation #29878

Open
@XrioBtw

Description

@XrioBtw

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'

Proposed solution

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp