[Matplotlib-users] applying an image's colormap to another image

2016-01-27 Thread Matteo Niccoli
Can something like this (which by the way I can't get to work): http://stackoverflow.com/questions/3114925/pil-convert-rgb-image-to-a-specific-8-bit-palette What I would like to do is this: 1) Import an RGB image, which would have its own colormap - say this one for example: https://upload.wikimed

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

2015-05-24 Thread Matteo Niccoli
Nice idea I will try Sent from my iPhone > On May 23, 2015, at 2:23 PM, Jody Klymak wrote: > > >> 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--

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

2015-05-23 Thread Matteo Niccoli
, Matteo Niccoli wrote: > Joe, Eric > > > Thanks to both for your further comments. > I made a new notebook, this time using open source data so it can be > downloaded and followed step by step. The html version in nbviewer is here: > > http://nbviewer.ipython.org/urls/dl.dropb

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

2015-05-22 Thread Matteo Niccoli
n would be appreciated > > Thanks, > Matteo > > > On Thu, May 21, 2015 4:10 pm, Eric Firing wrote: > > >> >> Colormapping occurs only when you give imshow a 2-D array of numbers to >> be mapped; when you feed it a 3-D array of RGB values, it simpl

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

2015-05-21 Thread Matteo Niccoli
> be mapped; when you feed it a 3-D array of RGB values, it simply shows > those colors. For colormapping to occur, it must be done on a 2-D array > as a step leading up to the generation of your img_array. > > Eric > On 2015/05/21 5:50 AM, Matteo Niccoli wrote: > >>

[Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-21 Thread Matteo Niccoli
I posted a question on stackoverflow about creating with making my own shading effect (I want to use horizontal gradient for the shading). http://stackoverflow.com/questions/30310002/issue-creating-map-shading-in-matplotlib-imshow-by-setting-opacity-to-data-gradi Unfortunately I cannot share the

Re: [Matplotlib-users] Tutorial on perceptual colormaps

2014-08-06 Thread Matteo Niccoli
s available somewhere by any chance ? > > > > Nicolas > > > > On 06 Aug 2014, at 15:25, Damon McDougall > wrote: > > >> On Mon, Aug 4, 2014 at 5:20 PM, Matteo Niccoli >> wrote: >> >>> Hi All >>> >>> >>> I recently

[Matplotlib-users] Tutorial on perceptual colormaps

2014-08-04 Thread Matteo Niccoli
Hi All I recently wrote a tutorial on how to evaluate and compare colormaps using perceptual principle. It is geared towards Matplotlib. http://nbviewer.ipython.org/github/mycarta/tutorials/blob/master/1408_Evaluate_and_compare_colormaps/How_to_evaluate_and_compare_colormaps.ipynb Although I am