On 2015/05/21 11:28 AM, Matteo Niccoli wrote: > OK, I understand. > > > Could you suggest a way to reduce that 3D array to a 2D array and plot it > with a specific colormap, while preserving the shading?
It looks like you will get what you want by following the titusjan's advice in his reply. If you are not seeing a shaded version of cubehelix, then the only thing I can imagine is that you inadvertently omitted the second line in his example: img_array = plt.get_cmap('cubehelix')(data_n) This is doing the colormapping at the start, generating the 3D array that you modify to apply your shading algorithm. Eric ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users