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
(2)
2
(3)
3
(14)
4
(11)
5
(10)
6
(7)
7
8
(3)
9
(16)
10
(9)
11
(12)
12
(1)
13
(14)
14
(10)
15
16
(1)
17
(7)
18
(9)
19
(7)
20
(10)
21
22
(1)
23
24
(1)
25
(5)
26
(7)
27
(1)
28
29
(2)
30
(2)
31
(11)




Showing results of 176

<< < 1 2 3 4 5 .. 8 > >> (Page 3 of 8)
From: Benjamin R. <ben...@ou...> - 2015年03月18日 18:01:36
For my part, I didn't take Keith's comment as antagonizing. If anything, I
should apologize to Sandro. It was not necessary for me to drag Debian into
this, because all I know is that I was having issues on Ubuntu.
Ben Root
On Wed, Mar 18, 2015 at 1:51 PM, Thomas Caswell <tca...@gm...> wrote:
> We do support ubuntu, travis.ci (which we use for continuous integration
> testing) is ubuntu based and my main development box is ubuntu (but I
> mostly work inside conda environments rather than virtualenvs these days).
> Even though it is the worst thing for a dev to say, 'it works on my
> machine'.
>
> Part of the problem here is that it looks like you are doing system-wide
> installations from source so you have almost certainly driven your system
> into an inconsistent state. Unless you know enough sys-admin magic to
> ensure you won't step on the toes of the system packages, I strongly
> suggest _never_ using sudo to install python packages. Either use
> venv/conda or install into a directory in your home directory and modify
> $PYTHONPATH as needed.
>
> I know it is frustrating, but there isn't a whole lot we can do to help
> you with you knowing exactly what you have done to your system.
>
> In any case antagonizing the developers and the debian packager is _not_
> the most effective course of action. I assure you all of us are making a
> good faith effort to make sure mpl works everywhere. Starting from that
> assumption will make all of these conversations go much more smoothly.
> Also remember everyone responding to you on this list is a volunteer,
> please be respectful of our time and energy.
>
> Tom
>
> On Wed, Mar 18, 2015 at 1:27 PM Benjamin Root <ben...@ou...> wrote:
>
>> We would too. This is the first time I have seen updating setuptools not
>> work. That was the fix... I have no clue why it is broken on your system.
>>
>> On Wed, Mar 18, 2015 at 1:20 PM, <kei...@bt...> wrote:
>>
>>> Ok, I will check out anaconda anyway.
>>>
>>>
>>>
>>> I would think that the matplotlib maintainers would want to make sure
>>> they support the very popular Ubuntu platform, even if a workaround for a
>>> bug elsewhere is needed.
>>>
>>>
>>>
>>> K
>>>
>>>
>>>
>>>
>>>
>>> *From:* ben...@gm... [mailto:ben...@gm...] *On Behalf
>>> Of *Benjamin Root
>>> *Sent:* 18 March 2015 17:17
>>> *To:* Briggs,KM,Keith,TUB2 R; Matplotlib Users
>>>
>>
>>> *Subject:* Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14
>>> with python3
>>>
>>>
>>>
>>> One thing I just noticed is that python3.4 and the distutils libraries
>>> are installed at /usr/lib/python3.4/distutils/, but the setuptools is
>>> located at /usr/local/lib/python3.4/dist-packages/. One of the oddities
>>> of setuptools is that it monkey-patches distutils, if I understand it
>>> correctly, so perhaps it isn't doing it correctly for some reason? I
>>> haven't a clue, really.
>>>
>>> This oddity in directory structures was actually one thing I noticed in
>>> Ubuntu last summer/fall for py2.7 that broke a lot of things for me. I was
>>> in a rush at the time, so I just switched to anaconda, nuked everything
>>> python in my .local and moved on. That is always an option here, but it
>>> would be nice to get to the bottom of this as well.
>>>
>>> Ben Root
>>>
>>>
>>>
>>> On Wed, Mar 18, 2015 at 1:03 PM, <kei...@bt...> wrote:
>>>
>>> Ben: thanks for your help - it's very much appreciated!
>>> Keith
>>>
>>> kbriggs:~/Downloads/matplotlib-1.4.3> python3
>>> Python 3.4.0 (default, Apr 11 2014, 13:05:11)
>>> [GCC 4.8.2] on linux
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>>
>>> >>> import setuptools
>>> >>> print(setuptools.__file__)
>>> /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.
>>> 4.egg/setuptools/__init__.py
>>> >>>
>>>
>>>
>>> kbriggs:~/Downloads/matplotlib-1.4.3> python
>>> Python 2.7.6 (default, Mar 22 2014, 22:59:56)
>>> [GCC 4.8.2] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>>
>>> >>> import setuptools
>>> >>> print(setuptools.__file__)
>>> /usr/lib/python2.7/dist-packages/setuptools/__init__.pyc
>>> >>>
>>>
>>>
>>> ________________________________________
>>> From: ben...@gm... [ben...@gm...] On Behalf Of Benjamin
>>> Root [ben...@ou...]
>>> Sent: 18 March 2015 16:58
>>> To: Briggs,KM,Keith,TUB2 R
>>> Cc: matplotlib development list
>>> Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
>>> python3
>>>
>>> Keith,
>>>
>>> Back to the issue at hand. could you do the following?
>>>
>>> import setuptools
>>> print(setuptools.__file__)
>>>
>>> It would be interesting to see if that path differs from the path of the
>>> egg you just listed.
>>> Ben
>>>
>>> On Wed, Mar 18, 2015 at 11:39 AM, <kei...@bt...<mailto:ke
>>> ith...@bt...>> wrote:
>>> pip still thinks I have the latest. I think it's a question of how to
>>> force the matplotlib setup.py to use actually it.
>>> Keith
>>>
>>> kbriggs:~/Downloads/matplotlib-1.4.3> sudo pip3 install setuptools
>>> --upgrade
>>> Requirement already up-to-date: setuptools in
>>> /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg
>>> Cleaning up...
>>>
>>> ________________________________________
>>> From: ben...@gm...<mailto:ben...@gm...> [
>>> ben...@gm...<mailto:ben...@gm...>] On Behalf Of
>>> Benjamin Root [ben...@ou...<mailto:ben...@ou...>]
>>> Sent: 18 March 2015 15:33
>>> To: Briggs,KM,Keith,TUB2 R
>>> Cc: matplotlib development list
>>> Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
>>> python3
>>>
>>> I would just use pip. Ubuntu/Debian has really messed up the python
>>> environment in more ways than one.
>>>
>>> On Wed, Mar 18, 2015 at 11:08 AM, keithbriggs <kei...@bt...
>>> <mailto:kei...@bt...><mailto:kei...@bt...<mailto:keith.
>>> br...@bt...>>> wrote:
>>> The Ubuntu package manager tells me it is up to date.
>>> If I download setuptools-14.3 and install, it goes into /usr/local/lib/
>>> and
>>> doesn't get used.
>>> How do I force it to be used?
>>> Or am I supposed to override the Ubuntu package manager?
>>> Keith
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website,
>>> sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub
>>> for all
>>> things parallel software development, from weekly thought leadership
>>> blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...<mailto:Matplot
>>> lib...@li...>
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>>
>>>
>> ------------------------------------------------------------
>> ------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
From: Thomas C. <tca...@gm...> - 2015年03月18日 17:51:55
We do support ubuntu, travis.ci (which we use for continuous integration
testing) is ubuntu based and my main development box is ubuntu (but I
mostly work inside conda environments rather than virtualenvs these days).
Even though it is the worst thing for a dev to say, 'it works on my
machine'.
Part of the problem here is that it looks like you are doing system-wide
installations from source so you have almost certainly driven your system
into an inconsistent state. Unless you know enough sys-admin magic to
ensure you won't step on the toes of the system packages, I strongly
suggest _never_ using sudo to install python packages. Either use
venv/conda or install into a directory in your home directory and modify
$PYTHONPATH as needed.
 I know it is frustrating, but there isn't a whole lot we can do to help
you with you knowing exactly what you have done to your system.
In any case antagonizing the developers and the debian packager is _not_
the most effective course of action. I assure you all of us are making a
good faith effort to make sure mpl works everywhere. Starting from that
assumption will make all of these conversations go much more smoothly.
Also remember everyone responding to you on this list is a volunteer,
please be respectful of our time and energy.
Tom
On Wed, Mar 18, 2015 at 1:27 PM Benjamin Root <ben...@ou...> wrote:
> We would too. This is the first time I have seen updating setuptools not
> work. That was the fix... I have no clue why it is broken on your system.
>
> On Wed, Mar 18, 2015 at 1:20 PM, <kei...@bt...> wrote:
>
>> Ok, I will check out anaconda anyway.
>>
>>
>>
>> I would think that the matplotlib maintainers would want to make sure
>> they support the very popular Ubuntu platform, even if a workaround for a
>> bug elsewhere is needed.
>>
>>
>>
>> K
>>
>>
>>
>>
>>
>> *From:* ben...@gm... [mailto:ben...@gm...] *On Behalf Of
>> *Benjamin Root
>> *Sent:* 18 March 2015 17:17
>> *To:* Briggs,KM,Keith,TUB2 R; Matplotlib Users
>>
>
>> *Subject:* Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
>> python3
>>
>>
>>
>> One thing I just noticed is that python3.4 and the distutils libraries
>> are installed at /usr/lib/python3.4/distutils/, but the setuptools is
>> located at /usr/local/lib/python3.4/dist-packages/. One of the oddities
>> of setuptools is that it monkey-patches distutils, if I understand it
>> correctly, so perhaps it isn't doing it correctly for some reason? I
>> haven't a clue, really.
>>
>> This oddity in directory structures was actually one thing I noticed in
>> Ubuntu last summer/fall for py2.7 that broke a lot of things for me. I was
>> in a rush at the time, so I just switched to anaconda, nuked everything
>> python in my .local and moved on. That is always an option here, but it
>> would be nice to get to the bottom of this as well.
>>
>> Ben Root
>>
>>
>>
>> On Wed, Mar 18, 2015 at 1:03 PM, <kei...@bt...> wrote:
>>
>> Ben: thanks for your help - it's very much appreciated!
>> Keith
>>
>> kbriggs:~/Downloads/matplotlib-1.4.3> python3
>> Python 3.4.0 (default, Apr 11 2014, 13:05:11)
>> [GCC 4.8.2] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>>
>> >>> import setuptools
>> >>> print(setuptools.__file__)
>> /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.
>> 4.egg/setuptools/__init__.py
>> >>>
>>
>>
>> kbriggs:~/Downloads/matplotlib-1.4.3> python
>> Python 2.7.6 (default, Mar 22 2014, 22:59:56)
>> [GCC 4.8.2] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>>
>> >>> import setuptools
>> >>> print(setuptools.__file__)
>> /usr/lib/python2.7/dist-packages/setuptools/__init__.pyc
>> >>>
>>
>>
>> ________________________________________
>> From: ben...@gm... [ben...@gm...] On Behalf Of Benjamin
>> Root [ben...@ou...]
>> Sent: 18 March 2015 16:58
>> To: Briggs,KM,Keith,TUB2 R
>> Cc: matplotlib development list
>> Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
>> python3
>>
>> Keith,
>>
>> Back to the issue at hand. could you do the following?
>>
>> import setuptools
>> print(setuptools.__file__)
>>
>> It would be interesting to see if that path differs from the path of the
>> egg you just listed.
>> Ben
>>
>> On Wed, Mar 18, 2015 at 11:39 AM, <kei...@bt...<mailto:ke
>> ith...@bt...>> wrote:
>> pip still thinks I have the latest. I think it's a question of how to
>> force the matplotlib setup.py to use actually it.
>> Keith
>>
>> kbriggs:~/Downloads/matplotlib-1.4.3> sudo pip3 install setuptools
>> --upgrade
>> Requirement already up-to-date: setuptools in
>> /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg
>> Cleaning up...
>>
>> ________________________________________
>> From: ben...@gm...<mailto:ben...@gm...> [
>> ben...@gm...<mailto:ben...@gm...>] On Behalf Of Benjamin
>> Root [ben...@ou...<mailto:ben...@ou...>]
>> Sent: 18 March 2015 15:33
>> To: Briggs,KM,Keith,TUB2 R
>> Cc: matplotlib development list
>> Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
>> python3
>>
>> I would just use pip. Ubuntu/Debian has really messed up the python
>> environment in more ways than one.
>>
>> On Wed, Mar 18, 2015 at 11:08 AM, keithbriggs <kei...@bt...
>> <mailto:kei...@bt...><mailto:kei...@bt...<mailto:keith.
>> br...@bt...>>> wrote:
>> The Ubuntu package manager tells me it is up to date.
>> If I download setuptools-14.3 and install, it goes into /usr/local/lib/
>> and
>> doesn't get used.
>> How do I force it to be used?
>> Or am I supposed to override the Ubuntu package manager?
>> Keith
>>
>>
>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...<mailto:Matplot
>> lib...@li...>
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>>
>>
> ------------------------------------------------------------
> ------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Benjamin R. <ben...@ou...> - 2015年03月18日 17:50:22
An important question that I should have asked before. Exactly where did
you get the installer from? That might help us figure out what happened
here.
As for a workaround, if you want to get savy with the command-line, you
could run "pip install six" on the command-line. That should install it for
you, and then you can try installing matplotlib through the executable.
On Tue, Mar 17, 2015 at 6:11 PM, garyr <ga...@fi...> wrote:
> I did as you suggest and got the "No module named matplot lib" message. I
> installed version 1.4.3 and got the "no module named six" message. I then
> deleted all the matplotlib files once again and installed version 1.3.1
> and now
> my matplotlib program runs. Is there something else could try?
>
>
> ----- Original Message -----
> From: "Benjamin Root" <ben...@ou...>
> To: "garyr" <ga...@fi...>
> Cc: "Matplotlib Users" <Mat...@li...>
> Sent: Tuesday, March 17, 2015 10:34 AM
> Subject: Re: [Matplotlib-users] ImportError: No module named six
>
>
> > Chances are, there is some sort of mixup in your installs (as evidenced
> by
> > the failure to go back to the previous version). I would try uninstalling
> > all matplotlib installs, then checking to see if python still sees
> > matplotlib anywhere (by running the script). It *should* say "No module
> > named matplotlib" or some such. Once all of that is removed, install
> > matplotlib again.
> >
> > Ben Root
> >
> > On Tue, Mar 17, 2015 at 1:12 PM, garyr <ga...@fi...> wrote:
> >
> >> I downloaded version 1.4.3 and installed it (i.e., executed
> >> matplotlib-1.4.3.win32-py2.6.exe). Now when I
> >> attempt to run a program I get the following:
> >>
> >> >python rainfallYears.py
> >> Traceback (most recent call last):
> >> File "rainfallYears.py", line 4, in <module>
> >> import matplotlib.pyplot as plt
> >> File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line
> 105, in
> >> <module>
> >> import six
> >> ImportError: No module named six
> >> >Exit code: 1
> >>
> >> So then I went back to 1.3.1 and get the same error...
> >> Help!
> >>
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Dive into the World of Parallel Programming The Go Parallel Website,
> >> sponsored
> >> by Intel and developed in partnership with Slashdot Media, is your hub
> for
> >> all
> >> things parallel software development, from weekly thought leadership
> blogs
> >> to
> >> news, videos, case studies, tutorials and more. Take a look and join the
> >> conversation now. http://goparallel.sourceforge.net/
> >> _______________________________________________
> >> Matplotlib-users mailing list
> >> Mat...@li...
> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >>
> >
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Benjamin R. <ben...@ou...> - 2015年03月18日 17:26:07
We would too. This is the first time I have seen updating setuptools not
work. That was the fix... I have no clue why it is broken on your system.
On Wed, Mar 18, 2015 at 1:20 PM, <kei...@bt...> wrote:
> Ok, I will check out anaconda anyway.
>
>
>
> I would think that the matplotlib maintainers would want to make sure they
> support the very popular Ubuntu platform, even if a workaround for a bug
> elsewhere is needed.
>
>
>
> K
>
>
>
>
>
> *From:* ben...@gm... [mailto:ben...@gm...] *On Behalf Of *Benjamin
> Root
> *Sent:* 18 March 2015 17:17
> *To:* Briggs,KM,Keith,TUB2 R; Matplotlib Users
>
> *Subject:* Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
> python3
>
>
>
> One thing I just noticed is that python3.4 and the distutils libraries are
> installed at /usr/lib/python3.4/distutils/, but the setuptools is located
> at /usr/local/lib/python3.4/dist-packages/. One of the oddities of
> setuptools is that it monkey-patches distutils, if I understand it
> correctly, so perhaps it isn't doing it correctly for some reason? I
> haven't a clue, really.
>
> This oddity in directory structures was actually one thing I noticed in
> Ubuntu last summer/fall for py2.7 that broke a lot of things for me. I was
> in a rush at the time, so I just switched to anaconda, nuked everything
> python in my .local and moved on. That is always an option here, but it
> would be nice to get to the bottom of this as well.
>
> Ben Root
>
>
>
> On Wed, Mar 18, 2015 at 1:03 PM, <kei...@bt...> wrote:
>
> Ben: thanks for your help - it's very much appreciated!
> Keith
>
> kbriggs:~/Downloads/matplotlib-1.4.3> python3
> Python 3.4.0 (default, Apr 11 2014, 13:05:11)
> [GCC 4.8.2] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> >>> import setuptools
> >>> print(setuptools.__file__)
>
> /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg/setuptools/__init__.py
> >>>
>
>
> kbriggs:~/Downloads/matplotlib-1.4.3> python
> Python 2.7.6 (default, Mar 22 2014, 22:59:56)
> [GCC 4.8.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> >>> import setuptools
> >>> print(setuptools.__file__)
> /usr/lib/python2.7/dist-packages/setuptools/__init__.pyc
> >>>
>
>
> ________________________________________
> From: ben...@gm... [ben...@gm...] On Behalf Of Benjamin
> Root [ben...@ou...]
> Sent: 18 March 2015 16:58
> To: Briggs,KM,Keith,TUB2 R
> Cc: matplotlib development list
> Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
> python3
>
> Keith,
>
> Back to the issue at hand. could you do the following?
>
> import setuptools
> print(setuptools.__file__)
>
> It would be interesting to see if that path differs from the path of the
> egg you just listed.
> Ben
>
> On Wed, Mar 18, 2015 at 11:39 AM, <kei...@bt...<mailto:
> kei...@bt...>> wrote:
> pip still thinks I have the latest. I think it's a question of how to
> force the matplotlib setup.py to use actually it.
> Keith
>
> kbriggs:~/Downloads/matplotlib-1.4.3> sudo pip3 install setuptools
> --upgrade
> Requirement already up-to-date: setuptools in
> /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg
> Cleaning up...
>
> ________________________________________
> From: ben...@gm...<mailto:ben...@gm...> [
> ben...@gm...<mailto:ben...@gm...>] On Behalf Of Benjamin
> Root [ben...@ou...<mailto:ben...@ou...>]
> Sent: 18 March 2015 15:33
> To: Briggs,KM,Keith,TUB2 R
> Cc: matplotlib development list
> Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
> python3
>
> I would just use pip. Ubuntu/Debian has really messed up the python
> environment in more ways than one.
>
> On Wed, Mar 18, 2015 at 11:08 AM, keithbriggs <kei...@bt...<mailto:
> kei...@bt...><mailto:kei...@bt...<mailto:kei...@bt...>>>
> wrote:
> The Ubuntu package manager tells me it is up to date.
> If I download setuptools-14.3 and install, it goes into /usr/local/lib/ and
> doesn't get used.
> How do I force it to be used?
> Or am I supposed to override the Ubuntu package manager?
> Keith
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...<mailto:
> Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
>
From: Benjamin R. <ben...@ou...> - 2015年03月18日 17:17:06
One thing I just noticed is that python3.4 and the distutils libraries are
installed at /usr/lib/python3.4/distutils/, but the setuptools is located
at /usr/local/lib/python3.4/dist-packages/. One of the oddities of
setuptools is that it monkey-patches distutils, if I understand it
correctly, so perhaps it isn't doing it correctly for some reason? I
haven't a clue, really.
This oddity in directory structures was actually one thing I noticed in
Ubuntu last summer/fall for py2.7 that broke a lot of things for me. I was
in a rush at the time, so I just switched to anaconda, nuked everything
python in my .local and moved on. That is always an option here, but it
would be nice to get to the bottom of this as well.
Ben Root
On Wed, Mar 18, 2015 at 1:03 PM, <kei...@bt...> wrote:
> Ben: thanks for your help - it's very much appreciated!
> Keith
>
> kbriggs:~/Downloads/matplotlib-1.4.3> python3
> Python 3.4.0 (default, Apr 11 2014, 13:05:11)
> [GCC 4.8.2] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> >>> import setuptools
> >>> print(setuptools.__file__)
>
> /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg/setuptools/__init__.py
> >>>
>
>
> kbriggs:~/Downloads/matplotlib-1.4.3> python
> Python 2.7.6 (default, Mar 22 2014, 22:59:56)
> [GCC 4.8.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> >>> import setuptools
> >>> print(setuptools.__file__)
> /usr/lib/python2.7/dist-packages/setuptools/__init__.pyc
> >>>
>
>
> ________________________________________
> From: ben...@gm... [ben...@gm...] On Behalf Of Benjamin
> Root [ben...@ou...]
> Sent: 18 March 2015 16:58
> To: Briggs,KM,Keith,TUB2 R
> Cc: matplotlib development list
> Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
> python3
>
> Keith,
>
> Back to the issue at hand. could you do the following?
>
> import setuptools
> print(setuptools.__file__)
>
> It would be interesting to see if that path differs from the path of the
> egg you just listed.
> Ben
>
> On Wed, Mar 18, 2015 at 11:39 AM, <kei...@bt...<mailto:
> kei...@bt...>> wrote:
> pip still thinks I have the latest. I think it's a question of how to
> force the matplotlib setup.py to use actually it.
> Keith
>
> kbriggs:~/Downloads/matplotlib-1.4.3> sudo pip3 install setuptools
> --upgrade
> Requirement already up-to-date: setuptools in
> /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg
> Cleaning up...
>
> ________________________________________
> From: ben...@gm...<mailto:ben...@gm...> [
> ben...@gm...<mailto:ben...@gm...>] On Behalf Of Benjamin
> Root [ben...@ou...<mailto:ben...@ou...>]
> Sent: 18 March 2015 15:33
> To: Briggs,KM,Keith,TUB2 R
> Cc: matplotlib development list
> Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with
> python3
>
> I would just use pip. Ubuntu/Debian has really messed up the python
> environment in more ways than one.
>
> On Wed, Mar 18, 2015 at 11:08 AM, keithbriggs <kei...@bt...<mailto:
> kei...@bt...><mailto:kei...@bt...<mailto:kei...@bt...>>>
> wrote:
> The Ubuntu package manager tells me it is up to date.
> If I download setuptools-14.3 and install, it goes into /usr/local/lib/ and
> doesn't get used.
> How do I force it to be used?
> Or am I supposed to override the Ubuntu package manager?
> Keith
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...<mailto:
> Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
From: <kei...@bt...> - 2015年03月18日 10:53:19
kbriggs:~/Downloads/matplotlib-1.4.3> python3 setup.py build
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
 matplotlib: yes [1.4.3]
 python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
 4.8.2]]
 platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
 numpy: yes [version 1.8.2]
 six: yes [using six version 1.5.2]
 dateutil: yes [dateutil was not found. It is required for date
 axis support. pip/easy_install may attempt to
 install it after matplotlib.]
 pytz: yes [pytz was not found. pip will attempt to install
 it after matplotlib.]
 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 [using pyparsing version 2.0.1]
 pycxx: yes [Official versions of PyCXX are not compatible
 with matplotlib on Python 3.x, since they lack
 support for the buffer object. Using local copy]
 libagg: yes [pkg-config information for 'libagg' could not
 be found. Using local copy.]
Traceback (most recent call last):
 File "setup.py", line 155, in <module>
 result = package.check()
 File "/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py", line 961, in check
 min_version='2.3', version=version)
 File "/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py", line 445, in _check_for_pkg_config
 if (not is_min_version(version, min_version)):
 File "/home/kbriggs/Downloads/matplotlib-1.4.3/setupext.py", line 173, in is_min_version
 return found_version >= expected_version
 File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
 c = self._cmp(other)
 File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
 if self.version < other.version:
TypeError: unorderable types: str() < int()
From: garyr <ga...@fi...> - 2015年03月17日 22:12:22
I did as you suggest and got the "No module named matplot lib" message. I
installed version 1.4.3 and got the "no module named six" message. I then
deleted all the matplotlib files once again and installed version 1.3.1 and now
my matplotlib program runs. Is there something else could try?
----- Original Message ----- 
From: "Benjamin Root" <ben...@ou...>
To: "garyr" <ga...@fi...>
Cc: "Matplotlib Users" <Mat...@li...>
Sent: Tuesday, March 17, 2015 10:34 AM
Subject: Re: [Matplotlib-users] ImportError: No module named six
> Chances are, there is some sort of mixup in your installs (as evidenced by
> the failure to go back to the previous version). I would try uninstalling
> all matplotlib installs, then checking to see if python still sees
> matplotlib anywhere (by running the script). It *should* say "No module
> named matplotlib" or some such. Once all of that is removed, install
> matplotlib again.
>
> Ben Root
>
> On Tue, Mar 17, 2015 at 1:12 PM, garyr <ga...@fi...> wrote:
>
>> I downloaded version 1.4.3 and installed it (i.e., executed
>> matplotlib-1.4.3.win32-py2.6.exe). Now when I
>> attempt to run a program I get the following:
>>
>> >python rainfallYears.py
>> Traceback (most recent call last):
>> File "rainfallYears.py", line 4, in <module>
>> import matplotlib.pyplot as plt
>> File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 105, in
>> <module>
>> import six
>> ImportError: No module named six
>> >Exit code: 1
>>
>> So then I went back to 1.3.1 and get the same error...
>> Help!
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for
>> all
>> things parallel software development, from weekly thought leadership blogs
>> to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
From: Benjamin R. <ben...@ou...> - 2015年03月17日 17:35:18
Chances are, there is some sort of mixup in your installs (as evidenced by
the failure to go back to the previous version). I would try uninstalling
all matplotlib installs, then checking to see if python still sees
matplotlib anywhere (by running the script). It *should* say "No module
named matplotlib" or some such. Once all of that is removed, install
matplotlib again.
Ben Root
On Tue, Mar 17, 2015 at 1:12 PM, garyr <ga...@fi...> wrote:
> I downloaded version 1.4.3 and installed it (i.e., executed
> matplotlib-1.4.3.win32-py2.6.exe). Now when I
> attempt to run a program I get the following:
>
> >python rainfallYears.py
> Traceback (most recent call last):
> File "rainfallYears.py", line 4, in <module>
> import matplotlib.pyplot as plt
> File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 105, in
> <module>
> import six
> ImportError: No module named six
> >Exit code: 1
>
> So then I went back to 1.3.1 and get the same error...
> Help!
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Paul H. <pmh...@gm...> - 2015年03月17日 17:33:08
You need to install the six module, no matter which version of Python you use. 
—
Sent from Mailbox
On Tue, Mar 17, 2015 at 10:31 AM, garyr <ga...@fi...> wrote:
> I downloaded version 1.4.3 and installed it (i.e., executed 
> matplotlib-1.4.3.win32-py2.6.exe). Now when I
> attempt to run a program I get the following:
>>python rainfallYears.py
> Traceback (most recent call last):
> File "rainfallYears.py", line 4, in <module>
> import matplotlib.pyplot as plt
> File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 105, in
> <module>
> import six
> ImportError: No module named six
>>Exit code: 1
> So then I went back to 1.3.1 and get the same error...
> Help!
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users 
From: garyr <ga...@fi...> - 2015年03月17日 17:29:16
I downloaded version 1.4.3 and installed it (i.e., executed 
matplotlib-1.4.3.win32-py2.6.exe). Now when I
attempt to run a program I get the following:
>python rainfallYears.py
Traceback (most recent call last):
 File "rainfallYears.py", line 4, in <module>
 import matplotlib.pyplot as plt
 File "C:\Python26\lib\site-packages\matplotlib\__init__.py", line 105, in
<module>
 import six
ImportError: No module named six
>Exit code: 1
So then I went back to 1.3.1 and get the same error...
Help!
From: Paul H. <pmh...@gm...> - 2015年03月17日 14:08:09
I'm confused is corrplot a matplotlib function? If it's not, there's not much we can do. You should probably just modify it to accept axes as parameters. 
—
Sent from Mailbox
On Tue, Mar 17, 2015 at 1:36 AM, Sudheer Joseph <sud...@ya...>
wrote:
> Hellow Paul,
> I thought I should show an example plot which shows the idea of what I was asking about corrplot. Below link shows it. 
> http://matplotlib.org/examples/pylab_examples/multi_image.html
> --------------------------------------------
> On Tue, 17/3/15, Sudheer Joseph <sud...@ya...> wrote:
> Subject: Re: [Matplotlib-users] Corr plot in subplot
> To: "Paul Hobson" <pmh...@gm...>, "Adam Hughes" <hug...@gm...>
> Cc: "Matplotlib Users" <mat...@li...>
> Date: Tuesday, 17 March, 2015, 8:31 AM
> 
> Hi Paul,
>         I could not succeed in
> plotting corrplot.Corrplot(df,ax=ax1).
> 
> infact the plotting procedure is
> c=corrplot.Corrplot(df,ax=ax1)
> then issue command
> c.plot().
> So there are 2 steps involved, which may be the
> complication. I am not very well versed with Matplotlib.
> Kindly help.
> 
> --------------------------------------------
> On Fri, 13/3/15, Adam Hughes <hug...@gm...>
> wrote:
> 
> Subject: Re:
> [Matplotlib-users] Corr plot in subplot
> To:
> "Paul Hobson" <pmh...@gm...>
> Cc: "Sudheer Joseph" <sud...@ya...>,
> "Matplotlib Users" <mat...@li...>
> Date: Friday, 13 March, 2015, 7:06 PM
> 
> All the
> 
> pandas plots that I've used take an axes keyword so
> try:
> 
> c =
> corrplot.Corrplot(df, ax=ax1)
> 
> 
> or
> c =
> 
> corrplot.Corrplot(df, axes=ax1)
> 
> Do either of those
> work?
> On Fri,
> Mar 13, 2015 at 2:04
> PM, Paul Hobson <pmh...@gm...>
> wrote:
> What's the
> function signature of
> corrplot.CorrPlot?
> Hopefully you can pass an Axes object to
> it
> argument.-p
> On Fri, Mar 13, 2015 at
> 9:02 AM, Sudheer Joseph <sud...@ya...>
> wrote:
> Dear
> 
> Matplotlib exprets,
> 
> I am
> trying to place the corrplot in subplot environment.
> But not able to figure out how to do it
> properly. Can any
> one advice please?
> 
> 
> 
> 
> 
> from
> biokit.viz import corrplot
> 
> df = pd.DataFrame(dict(( (k,
> np.random.random(10)+ord(k)-65)
> for k in
> letters)))
> 
> df =
> df.corr()
> 
> c =
> corrplot.Corrplot(df)
> 
> 
> 
> I wanted to make the
> corrplot in below 4 boxes which can
> come
> out as a single figure. The above data is a test data
> actually I wanted use seasonal data for this
> purpose.
> 
> 
> 
> fig = plt.figure()
> 
> 
> fig.subplots_adjust(left=0.2, wspace=0.6)
> 
> 
> ax1 = fig.add_subplot(221)
> 
> ax2 =
> fig.add_subplot(222)
> 
> ax3
> = fig.add_subplot(223)
> 
> 
> ax4 = fig.add_subplot(224)
> 
> 
> 
> 
> 
> 
> ***************************************************************
> 
> Sudheer Joseph
> 
> Indian National Centre for
> Ocean Information Services
> 
> Ministry of Earth Sciences, Govt. of India
> 
> POST BOX NO: 21, IDA
> Jeedeemetla P.O.
> 
> Via
> Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
> 
> 
> Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
> 
> 
> Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
> 
> E-mail:sjo...@gm...;sud...@ya...
> 
> Web- http://oppamthadathil.tripod.com
> 
> 
> ***************************************************************
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> Dive into the World of
> Parallel Programming The Go Parallel
> 
> Website, sponsored
> 
> by
> Intel and developed in partnership with Slashdot Media,
> is your hub for all
> 
> things parallel software development, from
> weekly thought
> leadership blogs to
> 
> news, videos, case studies,
> tutorials and more. Take a look
> and join
> the
> 
> conversation now. http://goparallel.sourceforge.net/
> 
> 
> _______________________________________________
> 
> Matplotlib-users mailing
> list
> 
> Mat...@li...
> 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> Dive into the World of
> Parallel Programming The Go Parallel
> 
> Website, sponsored
> 
> by
> Intel and developed in partnership with Slashdot Media,
> is your hub for all
> 
> things parallel software development, from
> weekly thought
> leadership blogs to
> 
> news, videos, case studies,
> tutorials and more. Take a look
> and join
> the
> 
> conversation now. http://goparallel.sourceforge.net/
> 
> _______________________________________________
> 
> Matplotlib-users mailing
> list
> 
> Mat...@li...
> 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
> 
> 
From: Sudheer J. <sud...@ya...> - 2015年03月17日 08:36:45
Hellow Paul,
 I thought I should show an example plot which shows the idea of what I was asking about corrplot. Below link shows it. 
http://matplotlib.org/examples/pylab_examples/multi_image.html
--------------------------------------------
On Tue, 17/3/15, Sudheer Joseph <sud...@ya...> wrote:
 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Paul Hobson" <pmh...@gm...>, "Adam Hughes" <hug...@gm...>
 Cc: "Matplotlib Users" <mat...@li...>
 Date: Tuesday, 17 March, 2015, 8:31 AM
 
 Hi Paul,
         I could not succeed in
 plotting corrplot.Corrplot(df,ax=ax1).
 
 infact the plotting procedure is
 c=corrplot.Corrplot(df,ax=ax1)
 then issue command
 c.plot().
 So there are 2 steps involved, which may be the
 complication. I am not very well versed with Matplotlib.
 Kindly help.
 
 --------------------------------------------
 On Fri, 13/3/15, Adam Hughes <hug...@gm...>
 wrote:
 
 Subject: Re:
 [Matplotlib-users] Corr plot in subplot
 To:
 "Paul Hobson" <pmh...@gm...>
 Cc: "Sudheer Joseph" <sud...@ya...>,
 "Matplotlib Users" <mat...@li...>
 Date: Friday, 13 March, 2015, 7:06 PM
 
 All the
 
 pandas plots that I've used take an axes keyword so
 try:
 
 c =
 corrplot.Corrplot(df, ax=ax1)
 
 
 or
 c =
 
 corrplot.Corrplot(df, axes=ax1)
 
 Do either of those
 work?
 On Fri,
 Mar 13, 2015 at 2:04
 PM, Paul Hobson <pmh...@gm...>
 wrote:
 What's the
 function signature of
 corrplot.CorrPlot?
 Hopefully you can pass an Axes object to
 it
 argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph <sud...@ya...>
 wrote:
 Dear
 
 Matplotlib exprets,
 
 I am
 trying to place the corrplot in subplot environment.
 But not able to figure out how to do it
 properly. Can any
 one advice please?
 
 
 
 
 
 from
 biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k,
 np.random.random(10)+ord(k)-65)
 for k in
 letters)))
 
 df =
 df.corr()
 
 c =
 corrplot.Corrplot(df)
 
 
 
 I wanted to make the
 corrplot in below 4 boxes which can
 come
 out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this
 purpose.
 
 
 
 fig = plt.figure()
 
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 
 ax1 = fig.add_subplot(221)
 
 ax2 =
 fig.add_subplot(222)
 
 ax3
 = fig.add_subplot(223)
 
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 
 ***************************************************************
 
 Sudheer Joseph
 
 Indian National Centre for
 Ocean Information Services
 
 Ministry of Earth Sciences, Govt. of India
 
 POST BOX NO: 21, IDA
 Jeedeemetla P.O.
 
 Via
 Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
 
 
 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
 
 
 Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
 
 E-mail:sjo...@gm...;sud...@ya...
 
 Web- http://oppamthadathil.tripod.com
 
 
 ***************************************************************
 
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of
 Parallel Programming The Go Parallel
 
 Website, sponsored
 
 by
 Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from
 weekly thought
 leadership blogs to
 
 news, videos, case studies,
 tutorials and more. Take a look
 and join
 the
 
 conversation now. http://goparallel.sourceforge.net/
 
 
 _______________________________________________
 
 Matplotlib-users mailing
 list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of
 Parallel Programming The Go Parallel
 
 Website, sponsored
 
 by
 Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from
 weekly thought
 leadership blogs to
 
 news, videos, case studies,
 tutorials and more. Take a look
 and join
 the
 
 conversation now. http://goparallel.sourceforge.net/
 
 _______________________________________________
 
 Matplotlib-users mailing
 list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
From: Sudheer J. <sud...@ya...> - 2015年03月17日 08:31:32
Hi Paul,
 I could not succeed in plotting corrplot.Corrplot(df,ax=ax1).
infact the plotting procedure is
c=corrplot.Corrplot(df,ax=ax1)
then issue command
c.plot().
So there are 2 steps involved, which may be the complication. I am not very well versed with Matplotlib.
Kindly help.
--------------------------------------------
On Fri, 13/3/15, Adam Hughes <hug...@gm...> wrote:
 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Paul Hobson" <pmh...@gm...>
 Cc: "Sudheer Joseph" <sud...@ya...>, "Matplotlib Users" <mat...@li...>
 Date: Friday, 13 March, 2015, 7:06 PM
 
 All the
 pandas plots that I've used take an axes keyword so
 try:
 
 c =
 corrplot.Corrplot(df, ax=ax1)
 
 or
 c =
 corrplot.Corrplot(df, axes=ax1)
 
 Do either of those
 work?
 On Fri,
 Mar 13, 2015 at 2:04 PM, Paul Hobson <pmh...@gm...>
 wrote:
 What's the function signature of
 corrplot.CorrPlot? Hopefully you can pass an Axes object to
 it argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph <sud...@ya...>
 wrote:
 Dear
 Matplotlib exprets,
 
 I am trying to place the corrplot in subplot environment.
 But not able to figure out how to do it properly. Can any
 one advice please?
 
 
 
 
 
 from biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65)
 for k in letters)))
 
 df = df.corr()
 
 c = corrplot.Corrplot(df)
 
 
 
 I wanted to make the corrplot in below 4 boxes which can
 come out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this purpose.
 
 
 
 fig = plt.figure()
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 ax1 = fig.add_subplot(221)
 
 ax2 = fig.add_subplot(222)
 
 ax3 = fig.add_subplot(223)
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 ***************************************************************
 
 Sudheer Joseph
 
 Indian National Centre for Ocean Information Services
 
 Ministry of Earth Sciences, Govt. of India
 
 POST BOX NO: 21, IDA Jeedeemetla P.O.
 
 Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
 
 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
 
 Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
 
 E-mail:sjo...@gm...;sud...@ya...
 
 Web- http://oppamthadathil.tripod.com
 
 ***************************************************************
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 
 _______________________________________________
 
 Matplotlib-users mailing list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 _______________________________________________
 
 Matplotlib-users mailing list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
From: Marin G. <mrn...@gm...> - 2015年03月16日 19:02:11
Le 14/03/2015 20:17, Amol Agrawal a écrit :
> Hello all,
>
> I am trying to make Grotrian diagrams using matplotlib.
> For those who don't know about grotrian diagrams here's the 
> link(http://en.wikipedia.org/wiki/Grotrian_diagram)
>
> They essentially depict transitions between different energy levels of 
> the atoms.
>
> Currently I have the data regarding the different energy levels of the 
> various atoms and need matplotlib to get the grotrian diagram of the 
> atom upon supplying it with the energy level data.
>
> Can anyone please help me with this?
>
>
> Regards,
> Amol
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
I guess to do so you would have to plot each line independently. I don't 
know about anything in mpl that could do that with just your data passed 
to the function.
You could look for an other library based on mpl, or write one yourself 
I guess.
Sorry to not be of any more help with this
Marin Gilles
From: Amol A. <pf...@gm...> - 2015年03月14日 19:17:52
Hello all,
I am trying to make Grotrian diagrams using matplotlib.
For those who don't know about grotrian diagrams here's the link(
http://en.wikipedia.org/wiki/Grotrian_diagram)
They essentially depict transitions between different energy levels of the
atoms.
Currently I have the data regarding the different energy levels of the
various atoms and need matplotlib to get the grotrian diagram of the atom
upon supplying it with the energy level data.
Can anyone please help me with this?
Regards,
Amol
From: Ryan N. <rne...@gm...> - 2015年03月14日 13:30:58
Brenton,
It's good to know that those other solutions work. Unfortunately, I'm just
sitting down at my Windows 7 computer, and I can't reproduce your problem.
I'm also using the Anaconda Python distribution, which might have different
behavior than your installation method.
However, you're in luck, because there are many, many ways to get IPython
to do what you want. (In fact, anything the Python interpreter does,
IPython does better.) All the possible options, though, can make things a
little tricky... Here's a couple of examples:
C:\> ipython -i filename.py
That will start IPython and automatically load the Python file "filename".
That way anything you define in "filename" will be available in the new
IPython session. Alternatively, you can use the IPython "%run" magic from
inside an IPython session:
In [1]: %run filename.py
That has the same effect as the first example.
As an alternative, IPython notebooks (
http://ipython.org/ipython-doc/stable/notebook/notebook.html) are a very
nice way to interactively work with some data while also retaining all of
the analysis code in a script-like manner. You can have your plots
displayed in the webpage by typing the following in one of the cells:
import matplotlib.pyplot as plt
%matplotlib inline
You can install this using pip:
C:\> pip install ipython[all]
I'm sorry I couldn't help you with your original problem, but I hope these
suggestions help.
Ryan
On Sat, Mar 14, 2015 at 8:54 AM, Brenton Horne <bre...@gm...>
wrote:
> On 14/03/2015 10:31 PM, Ryan Nelson wrote:
>
> >>> import matplotlib
> >>> matplotlib.use('TkAgg')
> >>> import matplotlib.pyplot as plt
> >>> plt.plot([1,2,3])
> >>> plt.show()
>
> That works fine.
>
> And
>
> import matplotlib
> >>> matplotlib.use('TkAgg')
> >>> import matplotlib.pyplot as plt
> >>> plt.ion()
> >>> plt.plot([1,2,3])
>
> works fine in IPython. I avoid using IPython btw because I don't know how
> to call py files from it. When it comes to python commands I like to save
> them as py files so I don't have to continually type them out. I know how
> to call files in the python shell as I access it via the command prompt
> (i.e., by typing python filename.py).
>
From: Ryan N. <rne...@gm...> - 2015年03月14日 12:31:30
Sorry Brenton, I meant for my reply to go to the entire list.
Anyway, in your response, I take it that you meant to say that the window
appears and disappears immediately. Yes?
What happens if you restart the Python interpreter and type the following?
>>> import matplotlib
>>> matplotlib.use('TkAgg')
>>> import matplotlib.pyplot as plt
>>> plt.plot([1,2,3])
>>> plt.show()
Does my first example work fine in the IPython interpreter? (Sorry, I'm not
on my Windows machine right now, so I can't tell you if I'm seeing the same
problem.)
Ryan
On Sat, Mar 14, 2015 at 8:21 AM, Brenton Horne <bre...@gm...>
wrote:
> Yes, a popup window appears but it appears immediately after it appears.
>
> On 14/03/2015 10:03 PM, Ryan Nelson wrote:
>
> Brenton,
>
> Unfortunately, those particular examples are out of date. First of all,
> I would not recommend using pylab at all -- and I think that many other
> folks will give you the same advice. (For reasons that I can describe later
> if you are interested.)
>
> IPython is a much different beast than the vanilla Python interpreter,
> especially in how it handles GUI stuff. Maybe you could temporarily move
> the matplotlibrc file that you created, and try the following from a
> regular Python session:
> >>> import matplotlib
> >>> matplotlib.use('TkAgg')
> >>> import matplotlib.pyplot as plt
> >>> plt.ion()
> >>> plt.plot([1,2,3])
> The second line is telling MPL what backend to use. (You can set this in
> the rc file later, but let's make sure this isn't the problem for now.) The
> third line imports the pyplot module, which is recommended over pylab. The
> fourth line is turning on interactive plotting. Once you execute the plot
> command on the fifth line, a popup window should appear. Yes?
>
> Ryan
>
>
>
> On Sat, Mar 14, 2015 at 5:17 AM, Brenton Horne <bre...@gm...>
> wrote:
>
>> Oh and I have made the mentioned customizations to matplotlibrc
>> (although the TkAgg line was already present). My python version is 2.7.9
>> and matplotlib version is 1.4.3.
>>
>> On 14/03/2015 7:14 PM, Brenton Horne wrote:
>>
>> Hi,
>>
>> I am on Windows 7 64 bit SP1 and I installed matplotlib via wheels files
>> here http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib but now
>> whenever I execute plotting commands from the python shell (e.g., the 'hi
>> mom' example here
>> http://matplotlib.org/1.4.3/users/shell.html?highlight=mailing%20list#other-python-interpreters)
>> it seems like as though some window is trying to pop up but nothing does.
>> Whereas if I try the the hist example here (
>> http://matplotlib.org/1.4.3/users/shell.html?highlight=mailing%20list#ipython-to-the-rescue)
>> in IPython I get a graph pop-up that seems fine.
>>
>> Thanks for your time,
>> Brenton
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
>
From: Sudheer J. <sud...@ya...> - 2015年03月14日 10:42:50
Sorry,
 I tried both ax= and axes= both did not work. before testing I thought it is the correct way but did not work some how.
WIth best regards.
Sudheer
fig = plt.figure()
fig.subplots_adjust(left=0.001, wspace=0.01)
ax1 = fig.add_subplot(221);corrplot.Corrplot(df_djf,axes=ax1)
ax2 = fig.add_subplot(222);corrplot.Corrplot(df_mam,axes=ax2)
ax3 = fig.add_subplot(223);corrplot.Corrplot(df_jja,axes=ax3)
ax4 = fig.add_subplot(224);corrplot.Corrplot(df_son,axes=ax4)
 ...: 
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-7-c3cf513439f4> in <module>()
 1 fig = plt.figure()
 2 fig.subplots_adjust(left=0.001, wspace=0.01)
----> 3 ax1 = fig.add_subplot(221);corrplot.Corrplot(df_djf,axes=ax1)
 4 ax2 = fig.add_subplot(222);corrplot.Corrplot(df_mam,axes=ax2)
 5 ax3 = fig.add_subplot(223);corrplot.Corrplot(df_jja,axes=ax3)
TypeError: __init__() got an unexpected keyword argument 'axes'
--------------------------------------------
On Fri, 13/3/15, Adam Hughes <hug...@gm...> wrote:
 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Paul Hobson" <pmh...@gm...>
 Cc: "Sudheer Joseph" <sud...@ya...>, "Matplotlib Users" <mat...@li...>
 Date: Friday, 13 March, 2015, 7:06 PM
 
 All the
 pandas plots that I've used take an axes keyword so
 try:
 
 c =
 corrplot.Corrplot(df, ax=ax1)
 
 or
 c =
 corrplot.Corrplot(df, axes=ax1)
 
 Do either of those
 work?
 On Fri,
 Mar 13, 2015 at 2:04 PM, Paul Hobson <pmh...@gm...>
 wrote:
 What's the function signature of
 corrplot.CorrPlot? Hopefully you can pass an Axes object to
 it argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph <sud...@ya...>
 wrote:
 Dear
 Matplotlib exprets,
 
 I am trying to place the corrplot in subplot environment.
 But not able to figure out how to do it properly. Can any
 one advice please?
 
 
 
 
 
 from biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65)
 for k in letters)))
 
 df = df.corr()
 
 c = corrplot.Corrplot(df)
 
 
 
 I wanted to make the corrplot in below 4 boxes which can
 come out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this purpose.
 
 
 
 fig = plt.figure()
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 ax1 = fig.add_subplot(221)
 
 ax2 = fig.add_subplot(222)
 
 ax3 = fig.add_subplot(223)
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 ***************************************************************
 
 Sudheer Joseph
 
 Indian National Centre for Ocean Information Services
 
 Ministry of Earth Sciences, Govt. of India
 
 POST BOX NO: 21, IDA Jeedeemetla P.O.
 
 Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
 
 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
 
 Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
 
 E-mail:sjo...@gm...;sud...@ya...
 
 Web- http://oppamthadathil.tripod.com
 
 ***************************************************************
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 
 _______________________________________________
 
 Matplotlib-users mailing list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 _______________________________________________
 
 Matplotlib-users mailing list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
From: Sudheer J. <sud...@ya...> - 2015年03月14日 10:25:30
Thank you Adam,
 I did not see your response earlier. It worls.
Thanks
Sudheer
 
***
--------------------------------------------
On Fri, 13/3/15, Adam Hughes <hug...@gm...> wrote:
 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Paul Hobson" <pmh...@gm...>
 Cc: "Sudheer Joseph" <sud...@ya...>, "Matplotlib Users" <mat...@li...>
 Date: Friday, 13 March, 2015, 7:06 PM
 
 All the
 pandas plots that I've used take an axes keyword so
 try:
 
 c =
 corrplot.Corrplot(df, ax=ax1)
 
 or
 c =
 corrplot.Corrplot(df, axes=ax1)
 
 Do either of those
 work?
 On Fri,
 Mar 13, 2015 at 2:04 PM, Paul Hobson <pmh...@gm...>
 wrote:
 What's the function signature of
 corrplot.CorrPlot? Hopefully you can pass an Axes object to
 it argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph <sud...@ya...>
 wrote:
 Dear
 Matplotlib exprets,
 
 I am trying to place the corrplot in subplot environment.
 But not able to figure out how to do it properly. Can any
 one advice please?
 
 
 
 
 
 from biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65)
 for k in letters)))
 
 df = df.corr()
 
 c = corrplot.Corrplot(df)
 
 
 
 I wanted to make the corrplot in below 4 boxes which can
 come out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this purpose.
 
 
 
 fig = plt.figure()
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 ax1 = fig.add_subplot(221)
 
 ax2 = fig.add_subplot(222)
 
 ax3 = fig.add_subplot(223)
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 ***************************************************************
 
 Sudheer Joseph
 
 Indian National Centre for Ocean Information Services
 
 Ministry of Earth Sciences, Govt. of India
 
 POST BOX NO: 21, IDA Jeedeemetla P.O.
 
 Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
 
 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
 
 Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
 
 E-mail:sjo...@gm...;sud...@ya...
 
 Web- http://oppamthadathil.tripod.com
 
 ***************************************************************
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 
 _______________________________________________
 
 Matplotlib-users mailing list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 _______________________________________________
 
 Matplotlib-users mailing list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
From: Brenton H. <bre...@gm...> - 2015年03月14日 09:18:02
Oh and I have made the mentioned customizations to matplotlibrc 
(although the TkAgg line was already present). My python version is 
2.7.9 and matplotlib version is 1.4.3.
On 14/03/2015 7:14 PM, Brenton Horne wrote:
> Hi,
>
> I am on Windows 7 64 bit SP1 and I installed matplotlib via wheels 
> files here http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib but 
> now whenever I execute plotting commands from the python shell (e.g., 
> the 'hi mom' example here 
> http://matplotlib.org/1.4.3/users/shell.html?highlight=mailing%20list#other-python-interpreters) 
> it seems like as though some window is trying to pop up but nothing 
> does. Whereas if I try the the hist example here 
> (http://matplotlib.org/1.4.3/users/shell.html?highlight=mailing%20list#ipython-to-the-rescue) 
> in IPython I get a graph pop-up that seems fine.
>
> Thanks for your time,
> Brenton
From: Brenton H. <bre...@gm...> - 2015年03月14日 09:15:08
Hi,
I am on Windows 7 64 bit SP1 and I installed matplotlib via wheels files 
here http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib but now 
whenever I execute plotting commands from the python shell (e.g., the 
'hi mom' example here 
http://matplotlib.org/1.4.3/users/shell.html?highlight=mailing%20list#other-python-interpreters) 
it seems like as though some window is trying to pop up but nothing 
does. Whereas if I try the the hist example here 
(http://matplotlib.org/1.4.3/users/shell.html?highlight=mailing%20list#ipython-to-the-rescue) 
in IPython I get a graph pop-up that seems fine.
Thanks for your time,
Brenton
From: Sudheer J. <sud...@ya...> - 2015年03月14日 07:52:52
Thank you Paul,
 I could not follow fully what you meant by that in reply. but below is the info available with corrplot.
Kindly provide some help.
With best regards,
Sudheer
 Here are some examples provided that the data is created and pass to c::
 | 
 | c = corrplot.Corrplor(dataframe)
 | c.plot(cmap=('Orange', 'white', 'green'))
 | c.plot(method='circle')
 | c.plot(colorbar=False, shrink=.8, upper='circle' )
 | 
--------------------------------------------
On Fri, 13/3/15, Paul Hobson <pmh...@gm...> wrote:
 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Sudheer Joseph" <sud...@ya...>
 Cc: "Matplotlib Users" <mat...@li...>
 Date: Friday, 13 March, 2015, 6:04 PM
 
 What's
 the function signature of corrplot.CorrPlot? Hopefully you
 can pass an Axes object to it
 argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph <sud...@ya...>
 wrote:
 Dear
 Matplotlib exprets,
 
 I am trying to place the corrplot in subplot environment.
 But not able to figure out how to do it properly. Can any
 one advice please?
 
 
 
 
 
 from biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65)
 for k in letters)))
 
 df = df.corr()
 
 c = corrplot.Corrplot(df)
 
 
 
 I wanted to make the corrplot in below 4 boxes which can
 come out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this purpose.
 
 
 
 fig = plt.figure()
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 ax1 = fig.add_subplot(221)
 
 ax2 = fig.add_subplot(222)
 
 ax3 = fig.add_subplot(223)
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 ***************************************************************
 
 Sudheer Joseph
 
 Indian National Centre for Ocean Information Services
 
 Ministry of Earth Sciences, Govt. of India
 
 POST BOX NO: 21, IDA Jeedeemetla P.O.
 
 Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
 
 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
 
 Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
 
 E-mail:sjo...@gm...;sud...@ya...
 
 Web- http://oppamthadathil.tripod.com
 
 ***************************************************************
 
 
 
 ------------------------------------------------------------------------------
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 
 _______________________________________________
 
 Matplotlib-users mailing list
 
 Mat...@li...
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
Hello,
I'm trying to learn if there is a better or less tedious way of changing the
x-axis time scale interval size when plotting time series data using
MATPLOTLIB.
To account for all the different x-axis intervals that I may end up using, I
usually do the following imports:
from matplotlib.dates import YearLocator, MonthLocator, WeekdayLocator,
DateFormatter, DayLocator
from matplotlib.dates import MO, TU, WE, TH, FR, SA, SU
Then I specify specific intervals by doing the following:
year = YearLocator()
month = MonthLocator(bymonth=range(1,13), bymonthday=1, interval=1)
week = WeekdayLocator(byweekday=MO) # Every MOnday
day = DayLocator(bymonthday=range(1,32), interval=1)
Then apply any of the above formats by doing:
axes.xaxis.set_major_locator(year)
axes.xaxis.set_major_locator(month)
I find all that above too tedious since I may then decide to change the
intervals to something different to experiment.
With R's ggplot2 or Yhat's ggplot, it is very simple and intuitive to change
the x-axis scale interval. You just need to specify the breaks and
minor_breaks interval like so:
scale_x_datetime(labels=date_format("%Y-%m"), breaks="3 months",
minor_breaks="1 month")
I've quit using MATPLOTLIB for plotting time series data because of this. 
However, I thought perhaps there is a better way that I am not aware of.
If there is a better way, please educate me! Thanks!
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Less-tedious-way-to-change-the-x-axis-scale-intervals-with-time-series-data-tp45175.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
Okay. I figured out the problem. You need to pass a dictionary to the
config magic. Here is the relevant code:
%config InlineBackend.print_figure_kwargs = {'bbox_inches':None}
I created a PR with IPython (https://github.com/ipython/ipython/pull/8051)
to add this information to the %matplotlib documentation, so this doesn't
cause confusion for others.
Thanks to all the IPython and MPL devs for these great tools!
On Fri, Mar 13, 2015 at 7:07 PM, Wes Turner <wes...@gm...> wrote:
> Ryan,
>
>
> http://wrdrd.github.io/docs/consulting/data-science.html#data-visualization-tools
> On Mar 13, 2015 1:59 PM, "Ryan Nelson" <rne...@gm...> wrote:
>
>> I'm constructing a multi-plot figure using an IPython notebook (v3) and
>> matplotlib (v1.4.3) inline magic. I was manually setting the axes bounds,
>> and I ended up with something like the following:
>>
>> ########
>> import matplotlib.pyplot as plt
>> %matplotlib inline
>>
>> bottom = 0.12
>> top = 0.9
>> left = 0.12
>> axwidth = (1-(left*2))/3
>>
>> fig = plt.figure(figsize=(10,4))
>>
>> ax1 = fig.add_axes((left, bottom, axwidth, top))
>> ax1.set_title('Title')
>> #ax1.tick_params(labelleft=False)
>>
>> ax2 = fig.add_axes((left+axwidth, bottom, axwidth, top),
>> sharex=ax1, sharey=ax1)
>> ax2.tick_params(labelleft=False)
>>
>> ax3 = fig.add_axes((left+axwidth*2, bottom, axwidth, top),
>> sharex=ax1, sharey=ax1)
>> ax3.tick_params(labelleft=False)
>>
>> fig.savefig('junk.pdf', format='pdf')
>> fig.savefig('junk2.png')
>> #######
>>
>> Obviously, the bottom+top that I've selected is >1, so the axes should go
>> off the top of the figure. (Stupid, I know...) The axes in both the PDF and
>> PNG formatted files are clipped by the top of the figure as you would
>> expect; however, the figure that is displayed in the Notebook looks just
>> fine. In addition, if you add a title to one of the axes, the figure in
>> IPython suddenly creates more space for the text. Maybe it is rearranging
>> the axes information behind the scenes?
>>
>> I'm curious why this design decision was made. I would say this is a bug.
>> Now that I know about this behavior, I can easily fix it. But new users
>> will be baffled when their saved figure looks nothing like the displayed
>> figure in the notebook.
>>
>> Ryan
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPy...@sc...
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
> _______________________________________________
> IPython-dev mailing list
> IPy...@sc...
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
Thanks Tom.
Your hint led me to the following page:
https://github.com/ipython/ipython/blob/aab20bf85126f5b1da857193c446aebe6346acec/docs/source/whatsnew/version2.0.rst#other-changes
So it seems that this change is quite old, and I never noticed it before...
The suggestion on that page requires some incantation of the %config magic.
I tried this:
%config InlineBackend.print_figure_kwargs.bbox_inches = None
Which silently passes, but doesn't change the behavior.
Your rational for IPython's use of this kwarg by default is sound, and I
understand that there are valid use cases for it in some circumstances.
However, I still think this is problematic. I like MPL because you can make
a plot to your exact specifications -- but setting this kind of behavior by
default (without a well documented fix) feels a little "Microsoft
Office"-y... That being said, I really don't care all that much. IPython is
a fantastic tool. I'll just move my plotting code to a separate script and
tweak things there. (But then I won't be able to share the notebook with my
fancy plot embedded except as an external image. Can't have everything.)
I actually don't want any sort of 'tight' layout; however, just for
reference, the `tight_layout` function throws an error in my example.
Ryan
On Fri, Mar 13, 2015 at 4:03 PM, Thomas Caswell <tca...@gm...> wrote:
> This is due to the fact that by default the inline backend saves the pngs
> using `boundingbox_inches='tight'`. The design goal on the mpl side of
> this kwargs was to trim off extra whitespace, but the way it is implemented
> works just as effectively to expand to fit artists that fall outside of the
> figure. I assume the choice to make this the default in inline was to
> waste as little space as possible.
>
> A possibly more reliable method to get the same effect is to use
> `tight_layout` (see http://matplotlib.org/users/tight_layout_guide.html)
>
> There was talk of replacing that implementation with a linear constraint
> solver, but not much progress has been made in that direction (see
> https://github.com/matplotlib/matplotlib/issues/1109)
>
> Tom
>
> On Fri, Mar 13, 2015 at 3:01 PM Ryan Nelson <rne...@gm...> wrote:
>
>> I'm constructing a multi-plot figure using an IPython notebook (v3) and
>> matplotlib (v1.4.3) inline magic. I was manually setting the axes bounds,
>> and I ended up with something like the following:
>>
>> ########
>> import matplotlib.pyplot as plt
>> %matplotlib inline
>>
>> bottom = 0.12
>> top = 0.9
>> left = 0.12
>> axwidth = (1-(left*2))/3
>>
>> fig = plt.figure(figsize=(10,4))
>>
>> ax1 = fig.add_axes((left, bottom, axwidth, top))
>> ax1.set_title('Title')
>> #ax1.tick_params(labelleft=False)
>>
>> ax2 = fig.add_axes((left+axwidth, bottom, axwidth, top),
>> sharex=ax1, sharey=ax1)
>> ax2.tick_params(labelleft=False)
>>
>> ax3 = fig.add_axes((left+axwidth*2, bottom, axwidth, top),
>> sharex=ax1, sharey=ax1)
>> ax3.tick_params(labelleft=False)
>>
>> fig.savefig('junk.pdf', format='pdf')
>> fig.savefig('junk2.png')
>> #######
>>
>> Obviously, the bottom+top that I've selected is >1, so the axes should go
>> off the top of the figure. (Stupid, I know...) The axes in both the PDF and
>> PNG formatted files are clipped by the top of the figure as you would
>> expect; however, the figure that is displayed in the Notebook looks just
>> fine. In addition, if you add a title to one of the axes, the figure in
>> IPython suddenly creates more space for the text. Maybe it is rearranging
>> the axes information behind the scenes?
>>
>> I'm curious why this design decision was made. I would say this is a bug.
>> Now that I know about this behavior, I can easily fix it. But new users
>> will be baffled when their saved figure looks nothing like the displayed
>> figure in the notebook.
>>
>> Ryan
>> ------------------------------------------------------------
>> ------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>

Showing results of 176

<< < 1 2 3 4 5 .. 8 > >> (Page 3 of 8)
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 によって変換されたページ (->オリジナル) /