colorsys.hsl_to_rgb(h, s, l), but not matplotlib.colors.hsl_to_rgb(array)

Hi all,

While working on this IPython Notebook http://nbviewer.ipython.org/github/empet/Math/blob/master/DomainColoring.ipynb

I wanted to compare the visual images of the same complex-valued function generated by the classical domain coloring method, using HSV, respectively HSL color model.

Unfortunately there is no matplotlib.colors.hsl_to_rgb(array) function, only colorsys.hsl_to_rgb(h,s,l). The latter acts on each pixel and is time consuming.

My question is, there is a special reason for which hsl_to_rgb is not implemented in matplotlib.colors for arrays?

I also looked in skimage.color http://scikit-image.org/docs/dev/api/skimage.color.html and couldn’t find such a function.

Is there a package containing such a conversion?

Thank you!

Em

http://2sn.org/python3/color.py

···

On 30 March 2014 07:27, Emilia Petrisor <emilia.petrisor@...287...> wrote:

Hi all,

While working on this IPython Notebook
http://nbviewer.ipython.org/github/empet/Math/blob/master/DomainColoring.ipynb
I wanted to compare the visual images of the same complex-valued function
generated by the classical domain coloring method, using HSV, respectively
HSL color model.

Unfortunately there is no matplotlib.colors.hsl_to_rgb(array) function,
only colorsys.hsl_to_rgb(h,s,l). The latter acts on each pixel and is time
consuming.

My question is, there is a special reason for which hsl_to_rgb is not
implemented in matplotlib.colors for arrays?
I also looked in skimage.color
http://scikit-image.org/docs/dev/api/skimage.color.html and couldn't find
such a function.

Is there a package containing such a conversion?
Thank you!

Em

------------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users