Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Eric Firing
On 2015/06/05 6:15 AM, Joe Kington wrote:
> Hopefully I will have some time today to play around with the D
> option. I want to see if I can shift the curve a bit to include more
> yellows and orange so that it can have a mix of cool and warm colors.
>
>
>
> I was thinking the same thing earlier.  Here's my attempt:

Joe,

Thank you--that's an interesting option.  It reminds me of the middle 
half of cubehelix in the Miscellaneous set:

http://matplotlib.org/examples/color/colormaps_reference.html

Cubehelix is also generated by an algorithm.

Your blu_grn_pink2 looks worth adding to the mpl collection.

Eric


--
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Joe Kington
On Fri, Jun 5, 2015 at 11:15 AM, Joe Kington  wrote:

> Hopefully I will have some time today to play around with the D option. I
>> want to see if I can shift the curve a bit to include more yellows and
>> orange so that it can have a mix of cool and warm colors.
>>
>>
>>
> I was thinking the same thing earlier.  Here's my attempt:
>

Not to jump back on topics too much, but I forgot to attach the colormap to
my earlier e-mail. Here it is.

from matplotlib.colors import LinearSegmentedColormap
from numpy import nan, inf

# Used to reconstruct the colormap in pycam02ucs.cm.viscm
parameters = {'xp': [-6.1859603226509137, -14.579245694353546, -16.377806845432701, -75.430564639197684, 40.576629605406652, 14.197732722912633],
  'yp': [-38.399280575539549, 5.6654676258992822, 11.061151079136692, 51.229016786570725, 35.641486810551555, -4.8261390887290077],
  'min_JK': 27.8125,
  'max_JK': 87.291667}

cm_data = [[ 0.08488181,  0.18308161,  0.67262216],
   [ 0.08312345,  0.19202711,  0.66090297],
   [ 0.08217997,  0.20014429,  0.64976469],
   [ 0.08198433,  0.2075936 ,  0.63911277],
   [ 0.08247594,  0.21447696,  0.62891889],
   [ 0.08359003,  0.2208603 ,  0.61920504],
   [ 0.08524777,  0.2268386 ,  0.60985788],
   [ 0.08738166,  0.23244191,  0.60093206],
   [ 0.08992038,  0.2377215 ,  0.59238917],
   [ 0.09280155,  0.24272587,  0.58416923],
   [ 0.09596381,  0.24747257,  0.57631143],
   [ 0.0993575 ,  0.251998  ,  0.56876406],
   [ 0.10293853,  0.25632645,  0.56150762],
   [ 0.10666336,  0.2604716 ,  0.55456023],
   [ 0.1105036 ,  0.26445857,  0.54787429],
   [ 0.11443019,  0.26830128,  0.54144512],
   [ 0.11841518,  0.27200976,  0.53528253],
   [ 0.12244369,  0.27560103,  0.5293494 ],
   [ 0.12649882,  0.27908535,  0.52363821],
   [ 0.13056226,  0.28246931,  0.51815934],
   [ 0.13462547,  0.28576389,  0.51289008],
   [ 0.13868224,  0.28897881,  0.50780839],
   [ 0.14271871,  0.2921176 ,  0.50293114],
   [ 0.14672864,  0.29518709,  0.49824894],
   [ 0.15071345,  0.29819656,  0.4937278 ],
   [ 0.1546626 ,  0.30114819,  0.48938498],
   [ 0.15857184,  0.30404672,  0.48521597],
   [ 0.16243974,  0.30689736,  0.48120845],
   [ 0.16626692,  0.3097055 ,  0.47734461],
   [ 0.17004651,  0.31247292,  0.47363702],
   [ 0.17377693,  0.31520325,  0.47007969],
   [ 0.1774579 ,  0.31790023,  0.4296],
   [ 0.18109034,  0.32056767,  0.46337356],
   [ 0.18466948,  0.32320706,  0.46022069],
   [ 0.18819439,  0.3258211 ,  0.4571996 ],
   [ 0.19166421,  0.32841234,  0.45430585],
   [ 0.19508052,  0.33098399,  0.4515254 ],
   [ 0.19844012,  0.33353749,  0.44886326],
   [ 0.20174153,  0.33607477,  0.44631801],
   [ 0.20498379,  0.3385979 ,  0.44388601],
   [ 0.20816589,  0.3411088 ,  0.44156374],
   [ 0.21128813,  0.34360991,  0.43934139],
   [ 0.21434794,  0.34610257,  0.43722134],
   [ 0.21734359,  0.34858841,  0.43520227],
   [ 0.22027364,  0.35106916,  0.433281  ],
   [ 0.22313653,  0.35354653,  0.43145439],
   [ 0.22593054,  0.3560222 ,  0.42971931],
   [ 0.22865443,  0.35849817,  0.42806853],
   [ 0.23130553,  0.36097577,  0.42650261],
   [ 0.23388157,  0.36345656,  0.42501923],
   [ 0.23638033,  0.36594216,  0.42361498],
   [ 0.23879948,  0.36843418,  0.42228628],
   [ 0.24113658,  0.37093422,  0.42102943],
   [ 0.24338915,  0.37344386,  0.41984053],
   [ 0.24555463,  0.37596471,  0.41871526],
   [ 0.2476304 ,  0.37849855,  0.41764727],
   [ 0.24961385,  0.3810466 ,  0.41663458],
   [ 0.25150254,  0.38361032,  0.41567235],
   [ 0.25329409,  0.38619113,  0.41475548],
   [ 0.25498629,  0.38879034,  0.41387864],
   [ 0.25657711,  0.39140923,  0.41303625],
   [ 0.25806477,  0.39404893,  0.4153],
   [ 0.25944772,  0.3967105 ,  0.41143149],
   [ 0.26072475,  0.39939485,  0.41065702],
   [ 0.26189499,  0.40210277,  0.40989287],
   [ 0.26295789,  0.4048349 ,  0.40913271],
   [ 0.26391332,  0.40759175,  0.40837023],
   [ 0.2647615 ,  0.41037366,  0.40759912],
   [ 0.26550293,  0.41318086,  0.40681296],
   [ 0.2661385 ,  0.41601343,  0.40600552],
   [ 0.2972,  0.41887118,  0.40517133],
   [ 0.26709825,  0.42175387,  0.40430471],
   [ 0.26742604,  0.42466112,  0.40340023],
   [ 0.26765527,  0.42759246,  0.40245273],
   [ 0.26778838,  0.43054729,  0.40145736],
   [ 0.26782797,  0.43352494,  0.40040961],
   [ 0.2677768 ,  0.43652465,  0.39930525],
   [ 0.26763777,  0.4395456 ,  0.3981404 ],
   [ 0.26741386,  0.44258692,  0.39691145],
   [ 0.26710811,  0.4456477 ,  0.39561511],
   [ 0.26672365,  0.448727  ,  0.39424836],
   [ 0.26626363,  0.45182384,  0.39280844],
   [ 0.26573088,  0.45493737,  0.39129233],
   [ 0.26512858,  0.4580666 ,  0.38969761],
   [ 0.264

Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Benjamin Root
It is funny that you mention that you prefer the warmer colors over the
cooler colors. There has been some back-n-forth about which is better. I
personally have found myself adverse to using just cool or just warm
colors, preferring a mix of cool and warm colors. Perhaps it is my
background in meteorology and viewing temperature maps?

Another place where a mix of cool and warm colors are useful is for
severity indications such as radar maps. It is no accident that radar maps
are colored greens and blues for weak precipitation, then yellow for
heavier, and then reds for heaviest (possibly severe) precipitation -- it
came from the old FAA color guides. While we all know that that colormap is
fundamentally flawed, there was a rationale behind it.

Hopefully I will have some time today to play around with the D option. I
want to see if I can shift the curve a bit to include more yellows and
orange so that it can have a mix of cool and warm colors.

Ben Root


On Fri, Jun 5, 2015 at 11:21 AM, Philipp A.  wrote:

> I vote for A and B. Only B if i get just one vote.
>
> C is too washed out and i like the warm colors more than the cold ones in
> D.
>
> It’s funny that this comes up while I’m handling colormaps in my own work
> at the moment.
>
> Neal Becker  schrieb am Fr., 5. Juni 2015 um
> 12:58 Uhr:
>
>> I vote for D, although I like matlab's new default even better
>>
>>
>>
>> --
>> ___
>> Matplotlib-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
> --
>
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Philipp A.
I vote for A and B. Only B if i get just one vote.

C is too washed out and i like the warm colors more than the cold ones in D.

It’s funny that this comes up while I’m handling colormaps in my own work
at the moment.

Neal Becker  schrieb am Fr., 5. Juni 2015 um 12:58 Uhr:

> I vote for D, although I like matlab's new default even better
>
>
>
> --
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Thomas Sprinzing
I opt for B,
and adding the matlab-default as secondary. 


cheers

THomas


Thomas Sprinzing
Dipl.-Ing. (FH)

Labor Tiefdruck 
Studiengang Druck- und Medientechnologie

Hochschule der Medien
University of Applied Sciences
Nobelstr. 10
70569 Stuttgart

Telefon: +49 711 8923 2196

www.hdm-stuttgart.de/dt



Am 05.06.2015 um 13:20 schrieb Jan Heczko :

> I'd choose D.
> A and B are too dark. Also, A-C seem to hide some detail in the simulation of 
> color blindness.
> 
> On 4 June 2015 at 22:42, Eric Firing  wrote:
> I am forwarding a message from Nathaniel Smith which is the start of a
> long thread on matplotlib-devel
> http://news.gmane.org/gmane.comp.python.matplotlib.devel
> related to changes that are in the works for matplotlib, and that are
> therefore of interest to matplotlib users.  Specifically, we will be
> updating the default color cycle for line plots, and the default
> colormap for image-type plots, including contourf and pcolormesh.  The
> most important part of Nathaniel's message is the link:
> 
>  https://bids.github.io/colormap/
> 
> which has been updated since his first message below.
> 
> Note that we are looking for a new *default* colormap--the one that will
> be used if you have not specified an alternative in your matplotlibrc
> file, your function keyword arguments, or anywhere else.  It does not in
> any way limit your ability to specify a colormap that you prefer for a
> particular application, or as your own default.  Rather, it should be a
> good all-around choice, that works reasonably well in a variety of
> applications, and that most people will find *comfortable* as well as
> functional.  It will become part of matplotlib's "look"; it should
> attract rather than repel prospective and new users.  We have some
> consensus about some of the other criteria, and these are coded into the
> tool that Nathaniel and Stéfan have developed for generating colormaps.
>   So far, 4 alternatives generated with this tool have been proposed at
> the link above; more might be added.
> 
> Eric
> 
>  Forwarded Message 
> Subject: [matplotlib-devel] RFC: candidates for a new default colormap
> Date: Tue, 2 Jun 2015 18:46:21 -0700
> From: Nathaniel Smith 
> To: [email protected]
> 
> 
> Hi all,
> 
> As was hinted at in a previous thread, Stéfan van der Walt and I have
> been using some Fancy Color Technology to attempt to design a new
> colormap intended to become matplotlib's new default. (Down with jet!)
> 
> Unfortunately, while our Fancy Color Technology includes a
> computational model of perceptual distance, it does not include a
> computational model of aesthetics. So this is where you come in.
> 
> We've put up three reasonable candidates at:
>  https://bids.github.io/colormap/
> (along with some well-known colormaps for comparison), and we'd like
> your feedback.
> 
> They are all optimal on all of the objective criteria we know how to
> measure. What we need judgements on is which one you like best, both
> aesthetically and as a way of visualizing data. (There are some sample
> plots to look at there, plus you can download them and play with them
> on your own data if you want.)
> 
> We especially value input from anyone with anomalous color vision.
> There are some simulations there, but computational models are
> inherently limited here. (It's difficult to ask someone with
> colorblindness "does this look to you, the same way this other picture
> looks to me?")
> 
> -n
> 
> --
> Nathaniel J. Smith -- http://vorpus.org
> 
> --
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
> 
> --
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> --
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jan Heczko
I'd choose D.
A and B are too dark. Also, A-C seem to hide some detail in the simulation
of color blindness.

On 4 June 2015 at 22:42, Eric Firing  wrote:

> I am forwarding a message from Nathaniel Smith which is the start of a
> long thread on matplotlib-devel
> http://news.gmane.org/gmane.comp.python.matplotlib.devel
> related to changes that are in the works for matplotlib, and that are
> therefore of interest to matplotlib users.  Specifically, we will be
> updating the default color cycle for line plots, and the default
> colormap for image-type plots, including contourf and pcolormesh.  The
> most important part of Nathaniel's message is the link:
>
>  https://bids.github.io/colormap/
>
> which has been updated since his first message below.
>
> Note that we are looking for a new *default* colormap--the one that will
> be used if you have not specified an alternative in your matplotlibrc
> file, your function keyword arguments, or anywhere else.  It does not in
> any way limit your ability to specify a colormap that you prefer for a
> particular application, or as your own default.  Rather, it should be a
> good all-around choice, that works reasonably well in a variety of
> applications, and that most people will find *comfortable* as well as
> functional.  It will become part of matplotlib's "look"; it should
> attract rather than repel prospective and new users.  We have some
> consensus about some of the other criteria, and these are coded into the
> tool that Nathaniel and Stéfan have developed for generating colormaps.
>   So far, 4 alternatives generated with this tool have been proposed at
> the link above; more might be added.
>
> Eric
>
>  Forwarded Message 
> Subject: [matplotlib-devel] RFC: candidates for a new default colormap
> Date: Tue, 2 Jun 2015 18:46:21 -0700
> From: Nathaniel Smith 
> To: [email protected]
> 
>
> Hi all,
>
> As was hinted at in a previous thread, Stéfan van der Walt and I have
> been using some Fancy Color Technology to attempt to design a new
> colormap intended to become matplotlib's new default. (Down with jet!)
>
> Unfortunately, while our Fancy Color Technology includes a
> computational model of perceptual distance, it does not include a
> computational model of aesthetics. So this is where you come in.
>
> We've put up three reasonable candidates at:
>  https://bids.github.io/colormap/
> (along with some well-known colormaps for comparison), and we'd like
> your feedback.
>
> They are all optimal on all of the objective criteria we know how to
> measure. What we need judgements on is which one you like best, both
> aesthetically and as a way of visualizing data. (There are some sample
> plots to look at there, plus you can download them and play with them
> on your own data if you want.)
>
> We especially value input from anyone with anomalous color vision.
> There are some simulations there, but computational models are
> inherently limited here. (It's difficult to ask someone with
> colorblindness "does this look to you, the same way this other picture
> looks to me?")
>
> -n
>
> --
> Nathaniel J. Smith -- http://vorpus.org
>
>
> --
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
>
>
> --
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Neal Becker
I vote for D, although I like matlab's new default even better


--
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-04 Thread Joy merwin monteiro
If we have to reply on this thread, I would choose Option C.
I don't like A,B because of the strong black at the edges, which
sometimes saturate plots whose values vary a lot. I prefer C over
D because of a personal preference towards darker colours.

Joy

On Fri, Jun 5, 2015 at 2:12 AM, Eric Firing  wrote:

> I am forwarding a message from Nathaniel Smith which is the start of a
> long thread on matplotlib-devel
> http://news.gmane.org/gmane.comp.python.matplotlib.devel
> related to changes that are in the works for matplotlib, and that are
> therefore of interest to matplotlib users.  Specifically, we will be
> updating the default color cycle for line plots, and the default
> colormap for image-type plots, including contourf and pcolormesh.  The
> most important part of Nathaniel's message is the link:
>
>  https://bids.github.io/colormap/
>
> which has been updated since his first message below.
>
> Note that we are looking for a new *default* colormap--the one that will
> be used if you have not specified an alternative in your matplotlibrc
> file, your function keyword arguments, or anywhere else.  It does not in
> any way limit your ability to specify a colormap that you prefer for a
> particular application, or as your own default.  Rather, it should be a
> good all-around choice, that works reasonably well in a variety of
> applications, and that most people will find *comfortable* as well as
> functional.  It will become part of matplotlib's "look"; it should
> attract rather than repel prospective and new users.  We have some
> consensus about some of the other criteria, and these are coded into the
> tool that Nathaniel and Stéfan have developed for generating colormaps.
>   So far, 4 alternatives generated with this tool have been proposed at
> the link above; more might be added.
>
> Eric
>
>  Forwarded Message 
> Subject: [matplotlib-devel] RFC: candidates for a new default colormap
> Date: Tue, 2 Jun 2015 18:46:21 -0700
> From: Nathaniel Smith 
> To: [email protected]
> 
>
> Hi all,
>
> As was hinted at in a previous thread, Stéfan van der Walt and I have
> been using some Fancy Color Technology to attempt to design a new
> colormap intended to become matplotlib's new default. (Down with jet!)
>
> Unfortunately, while our Fancy Color Technology includes a
> computational model of perceptual distance, it does not include a
> computational model of aesthetics. So this is where you come in.
>
> We've put up three reasonable candidates at:
>  https://bids.github.io/colormap/
> (along with some well-known colormaps for comparison), and we'd like
> your feedback.
>
> They are all optimal on all of the objective criteria we know how to
> measure. What we need judgements on is which one you like best, both
> aesthetically and as a way of visualizing data. (There are some sample
> plots to look at there, plus you can download them and play with them
> on your own data if you want.)
>
> We especially value input from anyone with anomalous color vision.
> There are some simulations there, but computational models are
> inherently limited here. (It's difficult to ask someone with
> colorblindness "does this look to you, the same way this other picture
> looks to me?")
>
> -n
>
> --
> Nathaniel J. Smith -- http://vorpus.org
>
>
> --
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
>
>
> --
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>



-- 
The best ruler, when he finishes his
tasks and completes his affairs,
the people say
“It all happened naturally”

 - Te Tao Ch'ing
--
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users