On Fri, Aug 9, 2013 at 6:57 AM, SquirrelSeq
<ralf.hauensch...@uni-mainz.de>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>
>
>
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
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users