Title: Adding lightsource when plotting Poly3DCollection · Issue #19509 · matplotlib/matplotlib · GitHub
Open Graph Title: Adding lightsource when plotting Poly3DCollection · Issue #19509 · matplotlib/matplotlib
X Title: Adding lightsource when plotting Poly3DCollection · Issue #19509 · matplotlib/matplotlib
Description: 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.Po...
Open Graph Description: 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(figu...
X Description: 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.Axe...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19509
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Adding lightsource when plotting Poly3DCollection","articleBody":"I am trying to visualize a .stl file using the libraries numpy-stl and mplot3D. \r\n```\r\n\r\nnew_mesh = mesh.Mesh.from_file('result.stl')\r\nfigure = plt.Figure(figsize=(6.4,5.4), dpi=100) \r\nax = mplot3d.Axes3D(figure)\r\nax.add_collection3d(mplot3d.art3d.Poly3DCollection(new_mesh.vectors))\r\n```\r\n\r\nBut in the plot we can barely see any features and its quite flat. Is it possible to add a `lightsource `option for Poly3DCollections.\r\n\r\n","author":{"url":"https://github.com/n2d7","@type":"Person","name":"n2d7"},"datePublished":"2021-02-14T01:55:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/19509/matplotlib/issues/19509"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a300a51-3daf-6442-9623-e4367c12f7e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8564:3B16A6:762B967:A64C2A8:6A502014 |
| html-safe-nonce | 0fa6b35812882c9c93691a5ccb849585c2785f42817493be4089350485507f21 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTY0OjNCMTZBNjo3NjJCOTY3OkE2NEMyQTg6NkE1MDIwMTQiLCJ2aXNpdG9yX2lkIjoiNjk1MDQ5MDc3MzExNzczOTAyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7cd3632ae38280c1552da0f514eba4ce27a8ad87df1245d0f77fd92322e6de7 |
| hovercard-subject-tag | issue:807869572 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/19509/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e01fb1efa2744fac81a91a444b8aabe6eceb41be2a5d0258987330fcfa424753/matplotlib/matplotlib/issues/19509 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e01fb1efa2744fac81a91a444b8aabe6eceb41be2a5d0258987330fcfa424753/matplotlib/matplotlib/issues/19509 |
| og:image:alt | 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(figu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | n2d7 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1b91b18e7330fc458dfd824c61eaed7daa830d6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width