SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S






1
(1)
2
(1)
3
(9)
4
(2)
5
6
(6)
7
(3)
8
(1)
9
(6)
10
(1)
11
12
13
(2)
14
(8)
15
(2)
16
17
(11)
18
(5)
19
(2)
20
(2)
21
(4)
22
(2)
23
(5)
24
(6)
25
26
27
(2)
28
(9)

Showing results of 90

<< < 1 2 3 4 > >> (Page 2 of 4)
From: Paul H. <pmh...@gm...> - 2014年02月21日 23:54:03
It appears that you have two different version of python installed (Apple's
2.7.3 and python.org's 2.7.5). You have to install all third-party packages
to the correct one. It appears pip in acting on Apple's python.
On Fri, Feb 21, 2014 at 2:08 PM, Timothy Duly <tim...@gm...> wrote:
> Hello,
>
> I recently upgraded matplotlib, which was relatively simple:
>
> sudo pip install matplotlib --upgrade
>
> I checked to make sure I did indeed upgrade:
>
> [~]$ python
> Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib; matplotlib.__version__
> '1.3.1'
>
> Success. However, when I do the same in IPython, I get the old version:
>
> [~]$ ipython --pylab
> Python 2.7.5 (default, Aug 25 2013, 00:04:04)
> Type "copyright", "credits" or "license" for more information.
> IPython 1.2.0 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object', use 'object??' for extra details.
> Using matplotlib backend: MacOSX
> In [1]: import matplotlib; matplotlib.__version__
> Out[1]: '1.1.1'
>
> Anyone know why this is the case? How do I point IPython to the newest
> version of matplotlib?
>
> I tried googling, but wasn't sure how to zero in on the answer with a
> search. Also, I'm not sure if this question is best suited for IPython
> people.
>
> Thanks,
> Tim
>
>
> ------------------------------------------------------------------------------
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Timothy D. <tim...@gm...> - 2014年02月21日 22:08:44
Hello,
I recently upgraded matplotlib, which was relatively simple:
sudo pip install matplotlib --upgrade
I checked to make sure I did indeed upgrade:
[~]$ python
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib; matplotlib.__version__
'1.3.1'
Success. However, when I do the same in IPython, I get the old version:
[~]$ ipython --pylab
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
Type "copyright", "credits" or "license" for more information.
IPython 1.2.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: MacOSX
In [1]: import matplotlib; matplotlib.__version__
Out[1]: '1.1.1'
Anyone know why this is the case? How do I point IPython to the newest
version of matplotlib?
I tried googling, but wasn't sure how to zero in on the answer with a
search. Also, I'm not sure if this question is best suited for IPython
people.
Thanks,
Tim
From: Joe K. <jof...@gm...> - 2014年02月21日 18:17:51
There's a bad meme here. Hope you'll forgive the distraction!
import matplotlib.pyplot as plt
import numpy as np
def main():
 t = np.linspace(0, 4*np.pi, 1000)
 fig, ax = plt.subplots()
 ax.plot(t, np.cos(t))
 ax.plot(t, np.sin(t))
 for _ in range(10):
 fig = inception(fig)
 plt.show()
def fig2rgb_array(fig):
 fig.canvas.draw()
 buf = fig.canvas.tostring_rgb()
 ncols, nrows = fig.canvas.get_width_height()
 return np.fromstring(buf, dtype=np.uint8).reshape(nrows, ncols, 3)
def inception(fig):
 fig.tight_layout()
 fig.set_facecolor('white')
 data = fig2rgb_array(fig)
 fig.clf()
 fig.add_subplot(111).imshow(data)
 return fig
main()
[image: Inline image 1]
Sorry, the link was in French ...
The English version:
http://esrf.profilsearch.com/recrute/fo_form_cand.php?_lang=en&id=300
Best regards,
Armando
On 20.02.2014 18:27, V. Armando Sole wrote:
> Dear colleagues,
>
> The ESRF is looking for a Software Developer:
>
> http://esrf.profilsearch.com/recrute/fo_annonce_voir.php?id=300
>
> Our ideal candidate would be experienced on OpenGL, OpenCL and 
> Python.
>
> Best regards,
>
> Armando
>
Dear colleagues,
The ESRF is looking for a Software Developer:
http://esrf.profilsearch.com/recrute/fo_annonce_voir.php?id=300
Our ideal candidate would be experienced on OpenGL, OpenCL and Python.
Best regards,
Armando
From: Gabriele B. <gb....@gm...> - 2014年02月19日 16:09:27
it works indexing the palette.
thanks
Gabriele
2014年02月18日 13:57 GMT-05:00 Paul Hobson <pmh...@gm...>:
> 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....@gm...> 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()
>> axius = lotgr.add_subplot(111)
>> 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])
>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>> lotgr.canvas.draw()
>>
>> thanks
>>
>> Gabriele
>>
>>
>> 2014年02月18日 10:47 GMT-05:00 Gabriele Brambilla <
>> gb....@gm...>:
>>
>> 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 <pmh...@gm...>:
>>>
>>> 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()
>>>> axius = lotgr.add_subplot(111)
>>>>
>>>> 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)
>>>>
>>>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>>>> lotgr.canvas.draw()
>>>>
>>>>
>>>> On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <
>>>> gb....@gm...> 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()
>>>>>
>>>>> axius = lotgr.add_subplot(111)
>>>>>
>>>>> 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)
>>>>>
>>>>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>>>>>
>>>>> lotgr.canvas.draw()
>>>>>
>>>>> thanks
>>>>>
>>>>> Gabriele
>>>>>
>>>>>
>>>>> 2014年02月17日 14:46 GMT-05:00 Paul Hobson <pmh...@gm...>:
>>>>>
>>>>> 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 <hug...@gm...
>>>>>> > 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.
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <cha...@gm...>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
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via
>>>>>>>> matplotlib] <[hidden email]<http://user/SendEmail.jtp?type=node&node=42886&i=0>
>>>>>>>> > 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]<http://user/SendEmail.jtp?type=node&node=42884&i=0>
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>>>
>>>>>>>>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------
>>>>>>>>> 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] <http://user/SendEmail.jtp?type=node&node=42886&i=1>
>>>>>>>>> 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
>>>>>>>>
>>>>>>>> ************************************************************************************
>>>>>>>>
>>>>>>>> ------------------------------
>>>>>>>> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
>>>>>>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
>>>>>>>> Mat...@li...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> 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
>>>>>>> Mat...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> 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
>>>>>> Mat...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
From: Gary P. <gar...@gm...> - 2014年02月19日 03:37:08
I've tried various ways of getting matplotlib on my OS X 10.7.5, and have
it work with numpy, etc. The approach that worked most smoothly was using
the conda package manager from contiuum
analytics<http://conda.pydata.org/docs/intro.html>.
 At first I installed the complete anaconda
distribution<https://store.continuum.io/cshop/anaconda/>which contains
almost everything I wanted, plus a lot of stuff I don't
need. And everything worked, including matplotlib. Since then I've
learned that conda works great installing things one at a time while taking
care of dependencies, so if all I want is matplotlib, I get that plus it
dependencies, and it works. But if you want an easy, fast (but large)
solution, install Anaconda. Conda has many other nice features that may
or may not be useful to you.
HTH, gary
~-~-~
On Sun, Feb 16, 2014 at 11:05 PM, Maggie Maes <mar...@gm...>wrote:
> Hi everyone,
>
> Sorry if this is a redundant request, but I haven't been able to find any
> reliable sources online. I'm trying to install matplotlib on my mac with
> osx 10.7.5. I get the following error:
>
>> unknowne4ce8f4d9c9c:matplotlib margaretmaes$ python setup.py
>> build============================================================================
>> Edit setup.cfg to change the build options
>> BUILDING MATPLOTLIB
>> matplotlib: yes [1.4.x]
>> python: yes [2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
>> [GCC
>> 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
>> 23351500)]]
>> platform: yes [darwin]
>> REQUIRED DEPENDENCIES AND EXTENSIONS
>> numpy: yes [version 1.5.1]
>> six: yes [six was not found.]
>> dateutil: yes [using dateutil version 1.5]
>> tornado: yes [tornado was not found. It is required for the
>> WebAgg backend. pip/easy_install may attempt to
>> install it after matplotlib.]
>> pyparsing: yes [pyparsing was not found. It is required for
>> mathtext support. pip/easy_install may attempt to
>> install it after matplotlib.]
>> pycxx: yes [Couldn't import. Using local copy.]
>> libagg: yes [pkg-config information for 'libagg' could not
>> be found. Using local copy.]
>> freetype: no [The C/C++ header for freetype2 (ft2build.h)
>> could not be found. You may need to install the
>> development package.]
>> png: yes [pkg-config information for 'libpng' could not
>> be found. Using unknown version.]
>> qhull: yes [pkg-config information for 'qhull' could not
>> be
>> found. Using local copy.]
>> OPTIONAL SUBPACKAGES
>> sample_data: yes [installing]
>> toolkits: yes [installing]
>> tests: yes [nose 0.11.1 or later is required to run the
>> matplotlib test suite. pip/easy_install may
>> attempt
>> to install it after matplotlib. / mock is required
>> to run the matplotlib test suite.
>> pip/easy_install
>> may attempt to install it after matplotlib.]
>> OPTIONAL BACKEND EXTENSIONS
>> macosx: yes [installing, darwin]
>> qt4agg: no [PyQt4 not found]
>> gtk3agg: no [Requires pygobject to be installed.]
>> gtk3cairo: no [Requires cairocffi or pycairo to be
>> installed.]
>> gtkagg: no [Requires pygtk]
>> tkagg: no [The C/C++ header for Tk (tk.h) could not be
>> found. You may need to install the development
>> package.]
>> wxagg: no [requires wxPython]
>> gtk: no [Requires pygtk]
>> agg: yes [installing]
>> cairo: no [cairocffi or pycairo not found]
>> windowing: no [Microsoft Windows only]
>> OPTIONAL LATEX DEPENDENCIES
>> dvipng: no
>> ghostscript: no
>> latex: no
>> pdftops: no
>>
>> ============================================================================
>> * The following required packages can not be
>> built:
>> * freetype
>
>
> I've tried symbolic linking freetype-related files in /usr/local (as seen
> here:
> http://stackoverflow.com/questions/4092994/unable-to-install-matplotlib-on-mac-os-x).
> I've also confirmed that freetype-related files are in my PATH environment
> variable. Could anyone point me in the right direction for installing the
> package?
>
> Many thanks,
>
> Maggie
>
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience. Start now.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Paul H. <pmh...@gm...> - 2014年02月18日 18:57:39
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....@gm...> 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()
> axius = lotgr.add_subplot(111)
> 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])
> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
> lotgr.canvas.draw()
>
> thanks
>
> Gabriele
>
>
> 2014年02月18日 10:47 GMT-05:00 Gabriele Brambilla <
> gb....@gm...>:
>
> 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 <pmh...@gm...>:
>>
>> 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()
>>> axius = lotgr.add_subplot(111)
>>>
>>> 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)
>>>
>>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>>> lotgr.canvas.draw()
>>>
>>>
>>> On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <
>>> gb....@gm...> 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()
>>>>
>>>> axius = lotgr.add_subplot(111)
>>>>
>>>> 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)
>>>>
>>>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>>>>
>>>> lotgr.canvas.draw()
>>>>
>>>> thanks
>>>>
>>>> Gabriele
>>>>
>>>>
>>>> 2014年02月17日 14:46 GMT-05:00 Paul Hobson <pmh...@gm...>:
>>>>
>>>> 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 <hug...@gm...>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.
>>>>>>
>>>>>>
>>>>>> On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <cha...@gm...>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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib]
>>>>>>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=42886&i=0>
>>>>>>> > 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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>>
>>>>>>>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------
>>>>>>>> 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] <http://user/SendEmail.jtp?type=node&node=42886&i=1>
>>>>>>>> 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
>>>>>>>
>>>>>>> ************************************************************************************
>>>>>>>
>>>>>>> ------------------------------
>>>>>>> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
>>>>>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
>>>>>>> Mat...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> 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
>>>>>> Mat...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> 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
>>>>> Mat...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>
>>>>>
>>>>
>>>
>>
>
From: Gabriele B. <gb....@gm...> - 2014年02月18日 18:32:12
Attachments: figure_43.png
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....@gm...>:
> 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()
> axius = lotgr.add_subplot(111)
> 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])
> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
> lotgr.canvas.draw()
>
> thanks
>
> Gabriele
>
>
> 2014年02月18日 10:47 GMT-05:00 Gabriele Brambilla <
> gb....@gm...>:
>
> 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 <pmh...@gm...>:
>>
>> 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()
>>> axius = lotgr.add_subplot(111)
>>>
>>> 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)
>>>
>>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>>> lotgr.canvas.draw()
>>>
>>>
>>> On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <
>>> gb....@gm...> 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()
>>>>
>>>> axius = lotgr.add_subplot(111)
>>>>
>>>> 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)
>>>>
>>>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>>>>
>>>> lotgr.canvas.draw()
>>>>
>>>> thanks
>>>>
>>>> Gabriele
>>>>
>>>>
>>>> 2014年02月17日 14:46 GMT-05:00 Paul Hobson <pmh...@gm...>:
>>>>
>>>> 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 <hug...@gm...>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.
>>>>>>
>>>>>>
>>>>>> On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <cha...@gm...>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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib]
>>>>>>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=42886&i=0>
>>>>>>> > 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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>>
>>>>>>>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------
>>>>>>>> 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] <http://user/SendEmail.jtp?type=node&node=42886&i=1>
>>>>>>>> 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
>>>>>>>
>>>>>>> ************************************************************************************
>>>>>>>
>>>>>>> ------------------------------
>>>>>>> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
>>>>>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
>>>>>>> Mat...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> 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
>>>>>> Mat...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> 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
>>>>> Mat...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>
>>>>>
>>>>
>>>
>>
>
From: Gabriele B. <gb....@gm...> - 2014年02月18日 18:31:04
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()
axius = lotgr.add_subplot(111)
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])
axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
lotgr.canvas.draw()
thanks
Gabriele
2014年02月18日 10:47 GMT-05:00 Gabriele Brambilla <
gb....@gm...>:
> 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 <pmh...@gm...>:
>
> 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()
>> axius = lotgr.add_subplot(111)
>>
>> 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)
>>
>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>> lotgr.canvas.draw()
>>
>>
>> On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <
>> gb....@gm...> 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()
>>>
>>> axius = lotgr.add_subplot(111)
>>>
>>> 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)
>>>
>>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>>>
>>> lotgr.canvas.draw()
>>>
>>> thanks
>>>
>>> Gabriele
>>>
>>>
>>> 2014年02月17日 14:46 GMT-05:00 Paul Hobson <pmh...@gm...>:
>>>
>>> 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 <hug...@gm...>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.
>>>>>
>>>>>
>>>>> On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <cha...@gm...> 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
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib]
>>>>>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=42886&i=0>>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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>>
>>>>>>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------
>>>>>>> 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]<http://user/SendEmail.jtp?type=node&node=42886&i=1>
>>>>>>> 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
>>>>>>
>>>>>> ************************************************************************************
>>>>>>
>>>>>> ------------------------------
>>>>>> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
>>>>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
>>>>>> Mat...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> 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
>>>>> Mat...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> 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
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>
>>>>
>>>
>>
>
From: Gabriele B. <gb....@gm...> - 2014年02月18日 15:48:04
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 <pmh...@gm...>:
> 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()
> axius = lotgr.add_subplot(111)
>
> 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)
>
> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
> lotgr.canvas.draw()
>
>
> On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <
> gb....@gm...> 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()
>>
>> axius = lotgr.add_subplot(111)
>>
>> 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)
>>
>> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>>
>> lotgr.canvas.draw()
>>
>> thanks
>>
>> Gabriele
>>
>>
>> 2014年02月17日 14:46 GMT-05:00 Paul Hobson <pmh...@gm...>:
>>
>> 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 <hug...@gm...>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.
>>>>
>>>>
>>>> On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <cha...@gm...> 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
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden
>>>>> email] <http://user/SendEmail.jtp?type=node&node=42886&i=0>> 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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>
>>>>>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>>>>>
>>>>>>
>>>>>> ------------------------------
>>>>>> 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]<http://user/SendEmail.jtp?type=node&node=42886&i=1>
>>>>>> 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
>>>>>
>>>>> ************************************************************************************
>>>>>
>>>>> ------------------------------
>>>>> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
>>>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
>>>>> Mat...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> 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
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>
>
From: Paul H. <pmh...@gm...> - 2014年02月18日 01:57:47
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()
axius = lotgr.add_subplot(111)
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)
axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
lotgr.canvas.draw()
On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla <
gb....@gm...> 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()
>
> axius = lotgr.add_subplot(111)
>
> 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)
>
> axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
>
> lotgr.canvas.draw()
>
> thanks
>
> Gabriele
>
>
> 2014年02月17日 14:46 GMT-05:00 Paul Hobson <pmh...@gm...>:
>
> 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 <hug...@gm...>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.
>>>
>>>
>>> On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <cha...@gm...> 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
>>>>
>>>>
>>>>
>>>> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden
>>>> email] <http://user/SendEmail.jtp?type=node&node=42886&i=0>> 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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>
>>>>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>>>>
>>>>>
>>>>> ------------------------------
>>>>> 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]<http://user/SendEmail.jtp?type=node&node=42886&i=1>
>>>>> 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
>>>>
>>>> ************************************************************************************
>>>>
>>>> ------------------------------
>>>> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
>>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
From: Gabriele B. <gb....@gm...> - 2014年02月17日 23:00:44
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()
axius = lotgr.add_subplot(111)
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)
axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
lotgr.canvas.draw()
thanks
Gabriele
2014年02月17日 14:46 GMT-05:00 Paul Hobson <pmh...@gm...>:
> 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 <hug...@gm...>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.
>>
>>
>> On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <cha...@gm...> 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
>>>
>>>
>>>
>>> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden
>>> email] <http://user/SendEmail.jtp?type=node&node=42886&i=0>> 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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>
>>>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>>>
>>>>
>>>> ------------------------------
>>>> 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]<http://user/SendEmail.jtp?type=node&node=42886&i=1>
>>>> 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
>>>
>>> ************************************************************************************
>>>
>>> ------------------------------
>>> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: C M <cmp...@gm...> - 2014年02月17日 20:31:16
On Mon, Feb 17, 2014 at 1:15 PM, Gabriele Brambilla <
gb....@gm...> 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?
>
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.
From: Scott L. <sl...@sp...> - 2014年02月17日 20:21:43
On Feb 17, 2014, at 1:15 PM, Gabriele Brambilla <gb....@gm...> 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
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
From: Paul H. <pmh...@gm...> - 2014年02月17日 19:46:19
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 <hug...@gm...>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.
>
>
> On Mon, Feb 17, 2014 at 1:52 PM, ChaoYue <cha...@gm...> 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
>>
>>
>>
>> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden
>> email] <http://user/SendEmail.jtp?type=node&node=42886&i=0>> 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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>>
>>>
>>> ------------------------------
>>> 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]<http://user/SendEmail.jtp?type=node&node=42886&i=1>
>>> 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
>>
>> ************************************************************************************
>>
>> ------------------------------
>> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Adam H. <hug...@gm...> - 2014年02月17日 19:41:22
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 <cha...@gm...> 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
>
>
>
> On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] <[hidden
> email] <http://user/SendEmail.jtp?type=node&node=42886&i=0>> 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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>>
>>
>> ------------------------------
>> 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]<http://user/SendEmail.jtp?type=node&node=42886&i=1>
>> 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
>
> ************************************************************************************
>
> ------------------------------
> View this message in context: Re: colorbllind problem<http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html>
> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: ChaoYue <cha...@gm...> - 2014年02月17日 18:53:05
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] <
ml-...@n5...> 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] <http://user/SendEmail.jtp?type=node&node=42884&i=0>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
> *daltonic.png* (181K) Download Attachment<http://matplotlib.1069221.n5.nabble.com/attachment/42884/0/daltonic.png>
>
>
> ------------------------------
> 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
> ml-...@n5...
> To unsubscribe from matplotlib, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx>
> .
> 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
************************************************************************************
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/colorbllind-problem-tp42884p42886.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Pierre H. <pie...@cr...> - 2014年02月17日 18:37:51
Le 17/02/2014 18:13, Eric Firing a écrit :
>> > I was then wondering :
>> > 1) is this solution recommended or not ?
>> > 2) is there a shortcup to avoird the five "dots" ?
> http://matplotlib.org/api/pyplot_api.html?highlight=locator_params#matplotlib.pyplot.locator_params
>
> This is both a pyplot function and an Axes method.
Thanks a lot!
I guess it would be nice to add a back reference to this method in
http://matplotlib.org/api/ticker_api.html
best,
Pierre
From: Gabriele B. <gb....@gm...> - 2014年02月17日 18:15:57
Attachments: daltonic.png
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
From: Eric F. <ef...@ha...> - 2014年02月17日 17:14:09
On 2014年02月17日 4:58 AM, Pierre Haessig wrote:
> Hi,
>
> In order to get a plot with a small number of ticks, it is possible to
> create a matplotlib.ticker.MaxNLocator object with a small value for
> `nbins`.
>
> However, I found it also possible to modify the existing AutoLocator
> instances, since AutoLocator derives from MaxNLocator :
>
> ax.xaxis.major.locator.set_params(nbins=5)
> ax.yaxis.major.locator.set_params(nbins=5)
>
> (the default nbins value seems to be 9)
>
> The advantage of this inplace solution is that it doesn't any
> importing/browsing in the mpl namespace. However, it's still a bit long.
>
> I was then wondering :
> 1) is this solution recommended or not ?
> 2) is there a shortcup to avoird the five "dots" ?
http://matplotlib.org/api/pyplot_api.html?highlight=locator_params#matplotlib.pyplot.locator_params
This is both a pyplot function and an Axes method.
Eric
>
> best,
> Pierre
From: Pierre H. <pie...@cr...> - 2014年02月17日 14:58:50
Hi,
In order to get a plot with a small number of ticks, it is possible to
create a matplotlib.ticker.MaxNLocator object with a small value for
`nbins`.
However, I found it also possible to modify the existing AutoLocator
instances, since AutoLocator derives from MaxNLocator :
ax.xaxis.major.locator.set_params(nbins=5)
ax.yaxis.major.locator.set_params(nbins=5)
(the default nbins value seems to be 9)
The advantage of this inplace solution is that it doesn't any
importing/browsing in the mpl namespace. However, it's still a bit long.
I was then wondering :
1) is this solution recommended or not ?
2) is there a shortcup to avoird the five "dots" ?
best,
Pierre
From: Maggie M. <mar...@gm...> - 2014年02月17日 04:05:53
Hi everyone,
Sorry if this is a redundant request, but I haven't been able to find any
reliable sources online. I'm trying to install matplotlib on my mac with
osx 10.7.5. I get the following error:
> unknowne4ce8f4d9c9c:matplotlib margaretmaes$ python setup.py
> build============================================================================
> Edit setup.cfg to change the build options
> BUILDING MATPLOTLIB
> matplotlib: yes [1.4.x]
> python: yes [2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
> [GCC
> 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
> 23351500)]]
> platform: yes [darwin]
> REQUIRED DEPENDENCIES AND EXTENSIONS
> numpy: yes [version 1.5.1]
> six: yes [six was not found.]
> dateutil: yes [using dateutil version 1.5]
> tornado: yes [tornado was not found. It is required for the
> WebAgg backend. pip/easy_install may attempt to
> install it after matplotlib.]
> pyparsing: yes [pyparsing was not found. It is required for
> mathtext support. pip/easy_install may attempt to
> install it after matplotlib.]
> pycxx: yes [Couldn't import. Using local copy.]
> libagg: yes [pkg-config information for 'libagg' could not
> be found. Using local copy.]
> freetype: no [The C/C++ header for freetype2 (ft2build.h)
> could not be found. You may need to install the
> development package.]
> png: yes [pkg-config information for 'libpng' could not
> be found. Using unknown version.]
> qhull: yes [pkg-config information for 'qhull' could not
> be
> found. Using local copy.]
> OPTIONAL SUBPACKAGES
> sample_data: yes [installing]
> toolkits: yes [installing]
> tests: yes [nose 0.11.1 or later is required to run the
> matplotlib test suite. pip/easy_install may
> attempt
> to install it after matplotlib. / mock is required
> to run the matplotlib test suite. pip/easy_install
> may attempt to install it after matplotlib.]
> OPTIONAL BACKEND EXTENSIONS
> macosx: yes [installing, darwin]
> qt4agg: no [PyQt4 not found]
> gtk3agg: no [Requires pygobject to be installed.]
> gtk3cairo: no [Requires cairocffi or pycairo to be
> installed.]
> gtkagg: no [Requires pygtk]
> tkagg: no [The C/C++ header for Tk (tk.h) could not be
> found. You may need to install the development
> package.]
> wxagg: no [requires wxPython]
> gtk: no [Requires pygtk]
> agg: yes [installing]
> cairo: no [cairocffi or pycairo not found]
> windowing: no [Microsoft Windows only]
> OPTIONAL LATEX DEPENDENCIES
> dvipng: no
> ghostscript: no
> latex: no
> pdftops: no
>
> ============================================================================
> * The following required packages can not be built:
> * freetype
I've tried symbolic linking freetype-related files in /usr/local (as seen
here:
http://stackoverflow.com/questions/4092994/unable-to-install-matplotlib-on-mac-os-x).
I've also confirmed that freetype-related files are in my PATH environment
variable. Could anyone point me in the right direction for installing the
package?
Many thanks,
Maggie
From: Jason G. <jas...@cr...> - 2014年02月15日 13:55:45
On 2/14/14 4:13 PM, Benjamin Root wrote:
> I rolled a 20 today for necromancer, so I am going to do a thread
> resurrection. Given recent improvements in matplotlib, we should
> definitely make this web-enabled. That way, we can share our nerdiness
> with our non-nerdy significant others.
Here's one try, with the experimental CommFigure IPython comm-based 
matplotlib backend I tweaked a few months ago:
http://sagecell.sagemath.org/?q=vcycko
(it responds to mouse motion, so move your mouse around. Change the 
duration line at the top to change how fast the heart beats.)
Thanks,
Jason
From: Apostolis G. <apo...@gm...> - 2014年02月15日 12:53:38
Amazing...
Great work!
2014年02月15日 0:13 GMT+02:00 Benjamin Root <ben...@ou...>:
> I rolled a 20 today for necromancer, so I am going to do a thread
> resurrection. Given recent improvements in matplotlib, we should
> definitely make this web-enabled. That way, we can share our nerdiness with
> our non-nerdy significant others.
>
> Happy Valentine's day!
> Ben
>
> On Mon, Feb 14, 2011 at 8:25 PM, Paul Ivanov <piv...@gm...> wrote:
>
>> jules hummon, on 2011年02月14日 07:23, wrote:
>> > Feel free to 'save and run', pass along, or ignore.
>> > This was my valentine's day present today.
>>
>> Thank you for sharing! I took the liberty of livening it up for
>> my sweetheart.
>>
>> #---------------------------------------------------
>> # hohumheartbeat.py - a more lively hohumheart.py ;)
>>
>> import numpy as np
>> import matplotlib as mpl
>> import matplotlib.pyplot as plt
>> from matplotlib.patches import Polygon
>>
>> # force square figure and square axes looks better for polar, IMO
>> width, height = mpl.rcParams['figure.figsize']
>> size = min(width, height)
>> # make a square figure
>> fig = plt.figure(figsize=(size, size))
>> ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True, axisbg='#ffffff')
>> ax2 = fig.add_axes([0.45, .9, 0.1, 0.1], polar=True, axisbg='#ffffff')
>>
>> ax.set_rmax(2.0)
>> ax2.set_rmax(4.0)
>> ax2.spines['polar'].set_visible(False)
>> ax2.patch.set_alpha(.3)
>> for a in ax,ax2:
>> a.set_xticks([])
>> a.set_yticks([])
>> ax.grid(False)
>>
>> theta = np.linspace(0,1,100)*np.pi*2
>> r = 1*(1-np.cos(theta))
>>
>> ncards = 5
>> step = 2*np.pi/ncards
>> pdict = dict(fc='r',ec='k', alpha=.5)
>> for ii in range(ncards):
>> tr = np.column_stack((theta+ii*step, r))
>> ax.add_patch(Polygon(tr, **pdict))
>>
>> # from WolframMath "Heart Curve"
>> r2 = 2 - 2*np.sin(theta)
>> r2 += np.sin(theta) * np.sqrt(np.abs(np.cos(theta))) / (np.sin(theta)+1.4)
>>
>> tr2 = np.column_stack((theta, r2))
>> ax2.add_patch(Polygon(tr2,**pdict)) # heart
>>
>> kwargs = dict(transform=ax2.transAxes, va='center', fontsize=20)
>> ax2.text(0,.45,"I",ha='right',**kwargs)
>> ax2.text(1,.4,"you",ha='left',**kwargs)
>>
>> beat = np.tan(np.linspace(0, np.pi*2, 100))
>> beat[0:20] = beat[60:80]
>> beat[-20:] = beat[20:40]
>> beat -= beat.min()
>> beat /= beat.max()
>>
>> i=0; beatlen = len(beat)-1;
>> def heartbeat(e):
>> global i;
>> i = (i+1) % (beatlen)
>> y = beat[i]
>> ax2.set_rmax(y*4. + 4.)
>> ax2.draw(ax.figure.canvas.get_renderer())
>> ax2.figure.canvas.blit(ax2.bbox)
>> #plt.draw() #use if the last two lines cause trouble
>>
>> # even your mouse movements make my heart skip a bit!
>> cid = ax.figure.canvas.mpl_connect('idle_event', heartbeat)
>>
>> print "ax.figure.canvas.mpl_disconnect(%d)" %cid
>> print "#run the line above to 'flatline' (stop heartbeat)"
>> plt.show()
>>
>> best,
>> --
>> Paul Ivanov
>> 314 address only used for lists, off-list direct email at:
>> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (GNU/Linux)
>>
>> iEYEARECAAYFAk1Z1gcACgkQe+cmRQ8+KPccQACgiCFswsMAqJObseb8yn2dHLR3
>> UuwAn0xb2MeaQJffHt70/u8T1j6lmuCJ
>> =0hq/
>> -----END PGP SIGNATURE-----
>>
>>
>> ------------------------------------------------------------------------------
>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>> Pinpoint memory and threading errors before they happen.
>> Find and fix more than 250 security defects in the development cycle.
>> Locate bottlenecks in serial and parallel code that limit performance.
>> http://p.sf.net/sfu/intel-dev2devfeb
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience. Start now.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

Showing results of 90

<< < 1 2 3 4 > >> (Page 2 of 4)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /