|
From: Benjamin R. <ben...@ou...> - 2013-08-09 13:35:54
|
On Fri, Aug 9, 2013 at 6:57 AM, SquirrelSeq <ral...@un...>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 |