# colorbllind problem

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

···

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

···

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…287…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

Look into the seaborn project:

it’s easy enough to define your own color palettes or select existing ones.

-paul

···

On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes <hughesadam87@…287…> wrote:

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…1896…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

Have you thought about plotting black lines and using different line styles? You could use very different line styles for lines that are close together such as 108.6 and 144.8 where trying to label the lines with a small number may be difficult. You might also use different markers for each line. You could only plot one or two markers if you don't want them cluttering up the lines.

hth,
Scott

···

On Feb 17, 2014, at 1:15 PM, Gabriele Brambilla <gb.gabrielebrambilla@...1003...7...> wrote:

Hi,
I'm dealing with a guy that is colorblind.
Have you got any suggestion on how could I show a plot like the one attached to him?
Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

In addition to the other suggestions: If this is a plot that is viewed on
his computer, you could also build in line picking, so that if the user
mouses over the line, information about that line is shown in the toolbar
or however you want.

···

On Mon, Feb 17, 2014 at 1:15 PM, Gabriele Brambilla < gb.gabrielebrambilla@...287...> wrote:

Hi,
I'm dealing with a guy that is colorblind.
Have you got any suggestion on how could I show a plot like the one
attached to him?
Is there an option in pyplot that write little numbers near the curves

Hi, I would like to set the color of the different plots with seaborn but I don’t find examples of this kind on the tutorial.
How could I modify this code? the zip() arguments are lists of the same dimension.

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

thanks

Gabriele

···

2014-02-17 14:46 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Look into the seaborn project:

it’s easy enough to define your own color palettes or select existing ones.

-paul

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes <hughesadam87@…287…> wrote:

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…287…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

Untested, of course, but I would do something like this:

import matplotlib.pyplot as plt

import seaborn

N = len(As)

myPallette = seaborn.color_palette(“skyblue”, N) # use the name of any mpl colormap here

seaborn.set_color_pallette(myPallette)

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

···

On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <gb.gabrielebrambilla@…287…> wrote:

Hi, I would like to set the color of the different plots with seaborn but I don’t find examples of this kind on the tutorial.
How could I modify this code? the zip() arguments are lists of the same dimension.

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

thanks

Gabriele

2014-02-17 14:46 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Look into the seaborn project:

it’s easy enough to define your own color palettes or select existing ones.

-paul

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes <hughesadam87@…287…> wrote:

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…287…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

it works, thank you.

Using a color palette that changes only the intensity/light of the color (all blue lines) helps.

Gabriele

···

2014-02-17 20:57 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Untested, of course, but I would do something like this:

import matplotlib.pyplot as plt

import seaborn

N = len(As)

myPallette = seaborn.color_palette(“skyblue”, N) # use the name of any mpl colormap here

seaborn.set_color_pallette(myPallette)

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <gb.gabrielebrambilla@…287…> wrote:

Hi, I would like to set the color of the different plots with seaborn but I don’t find examples of this kind on the tutorial.
How could I modify this code? the zip() arguments are lists of the same dimension.

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

thanks

Gabriele

2014-02-17 14:46 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Look into the seaborn project:

it’s easy enough to define your own color palettes or select existing ones.

-paul

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes <hughesadam87@…287…> wrote:

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…287…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

Hi,
I get right one plot, but this other one works in a strange way:

it restarts to give the darker color to a line. I would like to assign the colors in the right order so the colorblind guy that works with me could see the differences like a light growing. (I attach the image) do you understand where am I doing wrong? (before this piece of code I use other color palette but I think they have no effect on the following ones)

zipPARApha = zip(Pampli, Pgamma, Pecut, Pb, g)

myPalet1 = sns.color_palette(“RdPu_r”, 10)

sns.set_color_palette(myPalet1)

lotgr = plt.figure()

for n, (a1,b1,c1,d1,pha) in enumerate(zipPARApha):

if n % 18 == 0:

fittedval = spock(logeels, a1, b1, c1, d1)

phaint = int(pha)

angli = str(phaint)

imig = axius.plot(logeels, fittedval, label=angli)

axius.set_title('phase resolved spectra, ’ + lightitle)

axius.set_ylim([-100, 1])

lotgr.canvas.draw()

thanks

Gabriele

···

2014-02-18 10:47 GMT-05:00 Gabriele Brambilla <gb.gabrielebrambilla@…287…>:

it works, thank you.

Using a color palette that changes only the intensity/light of the color (all blue lines) helps.

Gabriele

2014-02-17 20:57 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Untested, of course, but I would do something like this:

import matplotlib.pyplot as plt

import seaborn

N = len(As)

myPallette = seaborn.color_palette(“skyblue”, N) # use the name of any mpl colormap here

seaborn.set_color_pallette(myPallette)

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <gb.gabrielebrambilla@…287…> wrote:

Hi, I would like to set the color of the different plots with seaborn but I don’t find examples of this kind on the tutorial.
How could I modify this code? the zip() arguments are lists of the same dimension.

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

thanks

Gabriele

2014-02-17 14:46 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Look into the seaborn project:

it’s easy enough to define your own color palettes or select existing ones.

-paul

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes <hughesadam87@…287…> wrote:

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…287…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

and the image is this.
you could see it gave colors not in the right order.

···

2014-02-18 13:30 GMT-05:00 Gabriele Brambilla <gb.gabrielebrambilla@…287…>:

Hi,
I get right one plot, but this other one works in a strange way:

it restarts to give the darker color to a line. I would like to assign the colors in the right order so the colorblind guy that works with me could see the differences like a light growing. (I attach the image) do you understand where am I doing wrong? (before this piece of code I use other color palette but I think they have no effect on the following ones)

zipPARApha = zip(Pampli, Pgamma, Pecut, Pb, g)

myPalet1 = sns.color_palette(“RdPu_r”, 10)

sns.set_color_palette(myPalet1)

lotgr = plt.figure()

for n, (a1,b1,c1,d1,pha) in enumerate(zipPARApha):

if n % 18 == 0:

fittedval = spock(logeels, a1, b1, c1, d1)

phaint = int(pha)

angli = str(phaint)

imig = axius.plot(logeels, fittedval, label=angli)

axius.set_title('phase resolved spectra, ’ + lightitle)

axius.set_ylim([-100, 1])

lotgr.canvas.draw()

thanks

Gabriele

2014-02-18 10:47 GMT-05:00 Gabriele Brambilla <gb.gabrielebrambilla@…287…>:

it works, thank you.

Using a color palette that changes only the intensity/light of the color (all blue lines) helps.

Gabriele

2014-02-17 20:57 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Untested, of course, but I would do something like this:

import matplotlib.pyplot as plt

import seaborn

N = len(As)

myPallette = seaborn.color_palette(“skyblue”, N) # use the name of any mpl colormap here

seaborn.set_color_pallette(myPallette)

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <gb.gabrielebrambilla@…287…> wrote:

Hi, I would like to set the color of the different plots with seaborn but I don’t find examples of this kind on the tutorial.
How could I modify this code? the zip() arguments are lists of the same dimension.

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

thanks

Gabriele

2014-02-17 14:46 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Look into the seaborn project:

it’s easy enough to define your own color palettes or select existing ones.

-paul

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes <hughesadam87@…287…> wrote:

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…287…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

Try specifying the color explicitly from the palette object:
import numpy as np

import matplotlib.pyplot as plt

import pandas

import seaborn

myPalet1 = seaborn.color_palette(“RdPu_r”, 10)

seaborn.set_color_palette(myPalet1)

x = np.linspace(start=0, stop=5, num=100)

fig, ax = plt.subplots()

for n, slope in enumerate(np.linspace(start=0, stop=5, num=10)):

ax.plot(x, slope*x**2, color=myPalet1[n])

···

On Tue, Feb 18, 2014 at 10:30 AM, Gabriele Brambilla <gb.gabrielebrambilla@…287…> wrote:

Hi,
I get right one plot, but this other one works in a strange way:

it restarts to give the darker color to a line. I would like to assign the colors in the right order so the colorblind guy that works with me could see the differences like a light growing. (I attach the image) do you understand where am I doing wrong? (before this piece of code I use other color palette but I think they have no effect on the following ones)

zipPARApha = zip(Pampli, Pgamma, Pecut, Pb, g)

myPalet1 = sns.color_palette(“RdPu_r”, 10)

sns.set_color_palette(myPalet1)

lotgr = plt.figure()

for n, (a1,b1,c1,d1,pha) in enumerate(zipPARApha):

if n % 18 == 0:

fittedval = spock(logeels, a1, b1, c1, d1)

phaint = int(pha)

angli = str(phaint)

imig = axius.plot(logeels, fittedval, label=angli)

axius.set_title('phase resolved spectra, ’ + lightitle)

axius.set_ylim([-100, 1])

lotgr.canvas.draw()

thanks

Gabriele

2014-02-18 10:47 GMT-05:00 Gabriele Brambilla <gb.gabrielebrambilla@…287…>:

it works, thank you.

Using a color palette that changes only the intensity/light of the color (all blue lines) helps.

Gabriele

2014-02-17 20:57 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Untested, of course, but I would do something like this:

import matplotlib.pyplot as plt

import seaborn

N = len(As)

myPallette = seaborn.color_palette(“skyblue”, N) # use the name of any mpl colormap here

seaborn.set_color_pallette(myPallette)

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <gb.gabrielebrambilla@…287…> wrote:

Hi, I would like to set the color of the different plots with seaborn but I don’t find examples of this kind on the tutorial.
How could I modify this code? the zip() arguments are lists of the same dimension.

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

thanks

Gabriele

2014-02-17 14:46 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Look into the seaborn project:

it’s easy enough to define your own color palettes or select existing ones.

-paul

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes <hughesadam87@…287…> wrote:

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…287…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.

``````

Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

it works indexing the palette.

thanks

Gabriele

···

2014-02-18 13:57 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Try specifying the color explicitly from the palette object:
import numpy as np

import matplotlib.pyplot as plt

import pandas

import seaborn

myPalet1 = seaborn.color_palette(“RdPu_r”, 10)

seaborn.set_color_palette(myPalet1)

x = np.linspace(start=0, stop=5, num=100)

fig, ax = plt.subplots()

for n, slope in enumerate(np.linspace(start=0, stop=5, num=10)):

ax.plot(x, slope*x**2, color=myPalet1[n])

On Tue, Feb 18, 2014 at 10:30 AM, Gabriele Brambilla <gb.gabrielebrambilla@…287…> wrote:

Hi,
I get right one plot, but this other one works in a strange way:

it restarts to give the darker color to a line. I would like to assign the colors in the right order so the colorblind guy that works with me could see the differences like a light growing. (I attach the image) do you understand where am I doing wrong? (before this piece of code I use other color palette but I think they have no effect on the following ones)

zipPARApha = zip(Pampli, Pgamma, Pecut, Pb, g)

myPalet1 = sns.color_palette(“RdPu_r”, 10)

sns.set_color_palette(myPalet1)

lotgr = plt.figure()

for n, (a1,b1,c1,d1,pha) in enumerate(zipPARApha):

if n % 18 == 0:

fittedval = spock(logeels, a1, b1, c1, d1)

phaint = int(pha)

angli = str(phaint)

imig = axius.plot(logeels, fittedval, label=angli)

axius.set_title('phase resolved spectra, ’ + lightitle)

axius.set_ylim([-100, 1])

lotgr.canvas.draw()

thanks

Gabriele

2014-02-18 10:47 GMT-05:00 Gabriele Brambilla <gb.gabrielebrambilla@…287…>:

it works, thank you.

Using a color palette that changes only the intensity/light of the color (all blue lines) helps.

Gabriele

2014-02-17 20:57 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Untested, of course, but I would do something like this:

import matplotlib.pyplot as plt

import seaborn

N = len(As)

myPallette = seaborn.color_palette(“skyblue”, N) # use the name of any mpl colormap here

seaborn.set_color_pallette(myPallette)

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <gb.gabrielebrambilla@…287…> wrote:

Hi, I would like to set the color of the different plots with seaborn but I don’t find examples of this kind on the tutorial.
How could I modify this code? the zip() arguments are lists of the same dimension.

zipPARA = zip(As, GAMMAs, EcutS, Bees, angles)

lotgr = plt.figure()

for a1,b1,c1,d1,angol in zipPARA:

fittedval = spock(logeels, a1, b1, c1, d1)

angli = str(angol)

imig = axius.plot(logeels, fittedval, label=angli)

lotgr.canvas.draw()

thanks

Gabriele

2014-02-17 14:46 GMT-05:00 Paul Hobson <pmhobson@…287…>:

Look into the seaborn project:

it’s easy enough to define your own color palettes or select existing ones.

-paul

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes <hughesadam87@…287…> wrote:

I’m wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a similar, quick way.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <chaoyuejoy@…287…> wrote:

Hi Gabriele,

I’m afraid you have to put the numbers by yourself using the plt.text, as in an example:
a = np.arange(10)
b = np.tile(a,(10,1))
c = np.tile(a[:,np.newaxis],(10)) + b

for i in range(10):
plt.text(5,c[i][5],str(i))

I’ve askd by a review to use the colorblind compatible colors when trying to submit a paper,
and I find a website below:
http://jfly.iam.u-tokyo.ac.jp/color/

I put some RGB numbers for some colors here if you feel like to have a try:
CCC = {
‘Black’:np.array([0,0,0])/255.,

``````   'Orange':np.array([230,159,0])/255.,
'Skyblue':np.array([85,180,233])/255.,
'BluishGreen':np.array([0,158,115])/255.,

'Yellow':np.array([240,228,66])/255.,
'Blue':np.array([0,114,178])/255.,
'Vermilion':np.array([213,94,0])/255.,

'ReddishPurple':np.array([204,121,167])/255.
}
``````

Cheers,

Chao

View this message in context: Re: colorbllind problem

Sent from the matplotlib - users mailing list archive at Nabble.com.

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden email]> wrote:

Hi,
I’m dealing with a guy that is colorblind.

Have you got any suggestion on how could I show a plot like the one attached to him?

Is there an option in pyplot that write little numbers near the curves instead of colors?

thanks

Gabriele

Managing the Performance of Cloud-Based Applications

Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.

Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884.html

To start a new topic under matplotlib - users, email [hidden email]

``````  To unsubscribe from matplotlib, click here.