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

Adding lightsource when plotting Poly3DCollection #19509

Closed
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!New featuretopic: mplot3d
Milestone
@n2d7

Description

@n2d7

I am trying to visualize a .stl file using the libraries numpy-stl and mplot3D.

new_mesh = mesh.Mesh.from_file('result.stl')figure = plt.Figure(figsize=(6.4,5.4), dpi=100) ax = mplot3d.Axes3D(figure)ax.add_collection3d(mplot3d.art3d.Poly3DCollection(new_mesh.vectors))

But in the plot we can barely see any features and its quite flat. Is it possible to add alightsourceoption for Poly3DCollections.
mplot3d plot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!New featuretopic: mplot3d

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp