|
From: Benjamin R. <ben...@ou...> - 2010-08-06 20:45:32
|
On Fri, Aug 6, 2010 at 3:33 PM, Damon McDougall <D.M...@wa...>wrote: > Hi all, > > Don't know if anybody else has found a colormap that is aesthetically > pleasing and prints well in black and white. I found one after a lot of > Googling. Perhaps useful for plotting figures in journals that charge a lot > for colour figures. I got the colormap from: > http://ieeexplore.ieee.org/iel5/74/22101/01028735.pdf%3Farnumber%3D1028735 > > I decided to code it up (see attached text file for the cdict). If anybody > finds it useful, maybe it could go into the default colormaps that ship with > matplotlib. > > > > > Regards, > -- Damon > > -------------------------- > Damon McDougall > Mathematics Institute > University of Warwick > Coventry > CV4 7AL > d.m...@wa... > > Actually, I have been looking at a somewhat related problem. It might be a useful feature in matplotlib.color to provide a function that can take a colormap and produce a grayscale version of it. In my limited amount of research, I have found that one could convert the rgb values into hsv or hsl and use the "value" or "lightness" respectively for the grayscale value. I forget which one was aesthetically better, though. Ben Root |