From: Maximilian A. <max...@gm...> - 2015-02-18 16:17:58
|
2015-02-17 1:23 GMT+01:00 Michael Waskom <mw...@st...>: > See [here](http://nbviewer.ipython.org/gist/mwaskom/6a43a3b94eca4a9e2e8b) > for a quick and dirty implementation that should get a general idea. This > probably ins't the best way to do it -- anyone should feel free to build on > this. > This is very neat! Great job. Incidentally, when I stumbled upon the earthobservatory blog a while ago this particular colormap also caught my eye as a potential candidate, so I'm glad you suggested it as a starting point for a new matplotlib default. Out of curiosity, I applied Nathaniel's "viscm" function (from the previous thread) to the colormap from your notebook (screenshot attached). Interestingly, while it confirms that the lightness and hue angle increase more or less linearly, the "colourfulness" goes up and down in waves, even though you designed the chroma to increase linearly, too. I'm not sure whether this is because "colourfulness" and "chroma" are actually two different concepts, or whether it has to do with inaccuracies and/or clamping during the conversion between various colour spaces. It could also be the case that the colormath and pycam02ucs modules use different conversion formulas (in which case it would be good to know which is "more accurate"; not sure there is even an objective measure for "accuracy" in this case). Also, there seems to be something strange going on at the dark (blue) end of the colormap, but this could again be due to clamping. I'd love to play a bit more with your example notebook but not sure I'll be able to do so before the weekend (or early next week). Cheers, Max |