You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding lightsource when plotting Poly3DCollection #19509
I guess an option is to add a method, shade_polygon to Poly3DCollection, or something, that basically does relevant parts of the above code.
I mark is as a good first issue since there is template code, but probably medium as it requires a bit of thinking. For example, which parameters to use.
Some other collections do have a depthshade argument to the constructor and one may consider using that here as well (although those are not really the same).
Activity
oscargus commentedon Aug 8, 2022
This is more or less implemented in
Axes3D.plot_surface:matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py
Lines 1485 to 1490 in cf38c34
I guess an option is to add a method,
shade_polygontoPoly3DCollection, or something, that basically does relevant parts of the above code.I mark is as a good first issue since there is template code, but probably medium as it requires a bit of thinking. For example, which parameters to use.
Some other collections do have a
depthshadeargument to the constructor and one may consider using that here as well (although those are not really the same).oscargus commentedon Oct 22, 2022
Another option, if someone bumps into this, is to provide
edgecolors, which they at least will result in the edges being articulated.