Text of discourse.matplotlib.org › t › colorbllind-problem › 18456 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

colorbllind problem - matplotlib-users - Matplotlib

colorbllind problem Community matplotlib-users Gabriele_Brambilla February 17, 2014, 6:15pm 1 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 daltonic.png 1707×815 115 KB Chao_YUE1 February 17, 2014, 6:52pm 2 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 plot(c) 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. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk Matplotlib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/matplotlib-users daltonic.png (181K) Download Attachment If you reply to this email, your message will be added to the discussion below: 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. [NAML](http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml) – 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 Adam_Hughes February 17, 2014, 7:41pm 3 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 plot(c) 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. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk Matplotlib-users mailing list [email protected] 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. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk Matplotlib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/matplotlib-users daltonic.png (181K) Download Attachment If you reply to this email, your message will be added to the discussion below: 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. [NAML](http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml) – 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 _Paul_Hobson1 February 17, 2014, 7:46pm 4 Adam, Look into the seaborn project: http://nbviewer.ipython.org/github/mwaskom/seaborn/blob/master/examples/aesthetics.ipynb 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. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk Matplotlib-users mailing list [email protected] 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 plot(c) 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 a

The rest of this page is on the live site.