Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-23 Thread Jody Klymak
> On May 23, 2015, at 12:07 PM, Eric Firing wrote: > > You might get something more to your liking if you were to start with a > colormap in which V is uniform--all variation is in H and S--and then > impose the shading on the V. Cubehelix starts with a full range of V, > so replacing V wit

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-23 Thread Eric Firing
On 2015/05/23 8:49 AM, Matteo Niccoli wrote: > Hi Eric > > If you look at the two attached images, both have the shading as expected, > but in one case the colours have changed, from the cubehelix colors, to > rainbow colors. Yes, the result looks more like a rainbow set, but that doesn't mean an

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-23 Thread Eric Firing
On 2015/05/22 9:33 AM, Matteo Niccoli wrote: > The second method suggested by titusjan replaces value in hsv space with > intensity as suggested. Eric you will notce I did include the line > img_array = plt.get_cmap('cubehelix')(data_n) and yet the colormapping is > not working. I don't understan

[Matplotlib-users] Potential issue with cubehelix colormap implementation in Matbplotlib?

2015-05-23 Thread Matteo Niccoli
This stems from a previous discussion I started, please see thread below. With reference to this notebook: http://nbviewer.ipython.org/urls/dl.dropbox.com/s/2pfhla9rn66lsbv/surface_shading.ipynb/%3Fdl%3D0 I originally thought there was an issue with the implementation of the blending of RGB and i