Hello everybody,
I created 3D-Plots with 3D bars in matplotlib. The bars are colored
according to a colormap.
Unfortunately, only vertical faces have the desired bright colors, whereas
the top sides of the bars are shaded darker to make it look more 3D.
This makes the colors a lot more difficult to see, depending on the
perspective.
What can I do in order to switch of shading or to add an ambivalent light
source?
Best regards
SquirrelSeq
<http://matplotlib.1069221.n5.nabble.com/file/n41766/overlap_heatmap.png>
···
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Turn-off-shading-in-ax-bar3d-tp41766.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
The one way to do it is to patch the source code in the following way.
in mpl_toolkits/mplot3d/axes3d.py, at around line 2355, replace the line:
sfacecolors = self._shade_colors(facecolors, normals)
with
sfacecolors = facecolors
Could you file a github issue requesting a keyword argument to turn this
on/off?
Cheers!
Ben Root
···
On Fri, Aug 9, 2013 at 6:57 AM, SquirrelSeq <ralf.hauenschild@...624...>wrote:
Hello everybody,
I created 3D-Plots with 3D bars in matplotlib. The bars are colored
according to a colormap.
Unfortunately, only vertical faces have the desired bright colors, whereas
the top sides of the bars are shaded darker to make it look more 3D.
This makes the colors a lot more difficult to see, depending on the
perspective.
What can I do in order to switch of shading or to add an ambivalent light
source?
Best regards
SquirrelSeq
<http://matplotlib.1069221.n5.nabble.com/file/n41766/overlap_heatmap.png>