SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S


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


Showing results of 52

<< < 1 2 3 > >> (Page 2 of 3)
From: Michael D. <md...@st...> - 2012年05月14日 15:00:05
On 05/12/2012 05:56 AM, Sandro Tosi wrote:
> Hello,
> as you may be aware of, in 1 month (more or less) Debian will freeze,
> that means that no new upstream releases will be allowed in the
> upcoming release, only fixex for important bugs.
>
> Currently in Debian archive we have 1.1.1rc1 . Recent mails have
> mentioned that the next release will be py3k enabled. Well, what are
> you're plans to release such version? :)
I don't think we have a timeframe on that yet. Getting out a solid, 
stable 1.1.1 (without Py3k support) I think is a higher priority right now.
>
> It would be really awesome to have a python3 matplotlib in Debian, and
> i'd be happy to test any new RC you'd like to release.
>
To get this going, perhaps I'll go ahead and make a branch off of master 
for 1.2.x and we could start testing it on all the platforms and see how 
far it feels from releasable state. There are few PRs in the queue that 
are simple yet critical that should get in there first.
Mike
From: Michael D. <md...@st...> - 2012年05月14日 14:43:15
On 05/12/2012 01:33 PM, Christoph Gohlke wrote:
>
>
> On 5/12/2012 6:16 AM, Michael Droettboom wrote:
>> On 05/12/2012 07:21 AM, Mark Lawrence wrote:
>>>
>>> My original offer (made several months ago) to help test this on 
>>> Windows
>>> still stands :)
>>>
>> Thanks. Does git master build and pass the unit tests on Windows?
>>
>> Mike
>>
>
> git master builds and tests OK on win32-py2.7.
>
> With the attached patch git master builds and works (in practice) OK 
> on win-amd64-py3.2 but there are many test errors of type 
> "RuntimeError: Could not open facefile X:\Python32\...\ttf\Vera.ttf; 
> Cannot_Open_Resource". I do delete the ~\.matplotlib folder before 
> running the tests and can verify that 
> FT2Font(r"X:\Python32\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf") 
> works.
That looks like the same issue we were having on the 1.1.x branch -- 
that it's running out of file handles -- that I thought was fixed by 
this PR:
https://github.com/matplotlib/matplotlib/pull/798
Or are we seeing something else here?
Mike
From: Tony Yu <ts...@gm...> - 2012年05月12日 19:22:45
On Sat, May 12, 2012 at 3:11 PM, Gökhan Sever <gok...@gm...> wrote:
> Hello,
>
> This is a good idea indeed. Especially, when one creates plots for
> presentations and papers. Usually, I make ticks, ticklabels, axes labels,
> line widths, marker sizes as large as possible (within reasonable limits)
> to make them more readable for presentation purposes. However, the same
> element sizes don't look very pretty when I create the same plots for paper
> or vice versa. The solution is either keep modify two rc files or adjust
> one rc file accordingly for each plotting style.
>
> Could the syntax be simplfied a bit? Say rather than using that with
> statement and the extra 4 spaces, can it be just a one simple liner like
> matplotlib.rcuse(mpl_paper.rc) or matplotlib.rcuse(mpl_presentation.rc)?
>
I believe that's what the `rc_file` function does in the
PR<https://github.com/matplotlib/matplotlib/pull/861/files>,
so both use cases are possible. I think it makes sense to allow both.
Cheers,
-Tony
On Fri, May 11, 2012 at 2:17 PM, Paul Ivanov <piv...@gm...> wrote:
>
>> Hey everyone,
>>
>> I wanted to highlight Matthew Emmett's (memmett) PR in progress [1] that
>> brings the ability to switch between rcParams.
>>
>> Matthew's implementation started with just being able to read in and use
>> an rcParam file, and I suggested the idea of having a context manager,
>> that would allow you to do something like:
>>
>> with rc_context(fname):
>> plt.plot()
>> ...
>>
>> and have the rcParams restored outside of the context.
>>
>> I know there have been a few threads (can't find links now for some
>> reason) and in-person discussions in the past about having this kind of
>> ability in matplotlib, and having an idea of "styles", and Tony Yu
>> implemented a variant of this on top of matplotlib in mpltools [2], but
>> I wanted to ping the list here for other ideas and feelings about such
>> functionality (if anyone can find pointers to previous discussions, that
>> would be very welcome).
>>
>> 1. https://github.com/matplotlib/matplotlib/pull/861
>> 2. https://github.com/tonysyu/mpltools
>>
>> best,
>> --
>> Paul Ivanov
>> 314 address only used for lists, off-list direct email at:
>> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
>
>
> --
> Gökhan
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
From: Gökhan S. <gok...@gm...> - 2012年05月12日 19:11:38
Hello,
This is a good idea indeed. Especially, when one creates plots for
presentations and papers. Usually, I make ticks, ticklabels, axes labels,
line widths, marker sizes as large as possible (within reasonable limits)
to make them more readable for presentation purposes. However, the same
element sizes don't look very pretty when I create the same plots for paper
or vice versa. The solution is either keep modify two rc files or adjust
one rc file accordingly for each plotting style.
Could the syntax be simplfied a bit? Say rather than using that with
statement and the extra 4 spaces, can it be just a one simple liner like
matplotlib.rcuse(mpl_paper.rc) or matplotlib.rcuse(mpl_presentation.rc)?
On Fri, May 11, 2012 at 2:17 PM, Paul Ivanov <piv...@gm...> wrote:
> Hey everyone,
>
> I wanted to highlight Matthew Emmett's (memmett) PR in progress [1] that
> brings the ability to switch between rcParams.
>
> Matthew's implementation started with just being able to read in and use
> an rcParam file, and I suggested the idea of having a context manager,
> that would allow you to do something like:
>
> with rc_context(fname):
> plt.plot()
> ...
>
> and have the rcParams restored outside of the context.
>
> I know there have been a few threads (can't find links now for some
> reason) and in-person discussions in the past about having this kind of
> ability in matplotlib, and having an idea of "styles", and Tony Yu
> implemented a variant of this on top of matplotlib in mpltools [2], but
> I wanted to ping the list here for other ideas and feelings about such
> functionality (if anyone can find pointers to previous discussions, that
> would be very welcome).
>
> 1. https://github.com/matplotlib/matplotlib/pull/861
> 2. https://github.com/tonysyu/mpltools
>
> best,
> --
> Paul Ivanov
> 314 address only used for lists, off-list direct email at:
> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
-- 
Gökhan
From: Christoph G. <cg...@uc...> - 2012年05月12日 17:33:42
Attachments: mpl-master.diff
On 5/12/2012 6:16 AM, Michael Droettboom wrote:
> On 05/12/2012 07:21 AM, Mark Lawrence wrote:
>>
>> My original offer (made several months ago) to help test this on Windows
>> still stands :)
>>
> Thanks. Does git master build and pass the unit tests on Windows?
>
> Mike
>
git master builds and tests OK on win32-py2.7.
With the attached patch git master builds and works (in practice) OK on 
win-amd64-py3.2 but there are many test errors of type "RuntimeError: 
Could not open facefile X:\Python32\...\ttf\Vera.ttf; 
Cannot_Open_Resource". I do delete the ~\.matplotlib folder before 
running the tests and can verify that 
FT2Font(r"X:\Python32\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf") 
works.
Christoph
From: Michael D. <md...@st...> - 2012年05月12日 13:16:47
On 05/12/2012 07:21 AM, Mark Lawrence wrote:
>
> My original offer (made several months ago) to help test this on Windows
> still stands :)
>
Thanks. Does git master build and pass the unit tests on Windows?
Mike
From: Mark L. <bre...@ya...> - 2012年05月12日 11:21:49
On 12/05/2012 11:01, Thomas Kluyver wrote:
> On 12 May 2012 10:56, Sandro Tosi<mo...@de...> wrote:
>> It would be really awesome to have a python3 matplotlib in Debian, and
>> i'd be happy to test any new RC you'd like to release.
>
> Just to mention: I've set up a daily builds PPA for matplotlib, and
> it's been happily producing Python 3 builds for a while, so it looks
> like it should be fairly painless:
> https://code.launchpad.net/~takluyver/+archive/matplotlib-daily
>
> Thanks,
> Thomas
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
My original offer (made several months ago) to help test this on Windows 
still stands :)
-- 
Cheers.
Mark Lawrence.
From: Thomas K. <th...@kl...> - 2012年05月12日 10:02:24
On 12 May 2012 10:56, Sandro Tosi <mo...@de...> wrote:
> It would be really awesome to have a python3 matplotlib in Debian, and
> i'd be happy to test any new RC you'd like to release.
Just to mention: I've set up a daily builds PPA for matplotlib, and
it's been happily producing Python 3 builds for a while, so it looks
like it should be fairly painless:
https://code.launchpad.net/~takluyver/+archive/matplotlib-daily
Thanks,
Thomas
From: Sandro T. <mo...@de...> - 2012年05月12日 09:56:50
Hello,
as you may be aware of, in 1 month (more or less) Debian will freeze,
that means that no new upstream releases will be allowed in the
upcoming release, only fixex for important bugs.
Currently in Debian archive we have 1.1.1rc1 . Recent mails have
mentioned that the next release will be py3k enabled. Well, what are
you're plans to release such version? :)
It would be really awesome to have a python3 matplotlib in Debian, and
i'd be happy to test any new RC you'd like to release.
Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
From: Paul I. <piv...@gm...> - 2012年05月11日 23:57:33
On Fri, May 11, 2012 at 2:45 PM, Michael Droettboom <md...@st...> wrote:
> The next major release (which will include Python 3 support) bumps the
> minimum requirement up to Python 2.6.
Right, this was my working assumption when I made the 'with' statement
suggestion. Since it's a new feature, it won't make it into the 1.1.x
series, and in the next major relase (>= py2.6) we can safely use
context managers.
best
-- 
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
From: Benjamin R. <ben...@ou...> - 2012年05月11日 21:56:33
On Friday, May 11, 2012, Michael Droettboom wrote:
> The minimum requirement of the 1.1 series is still Python 2.4, believe it
> or not, though I'm not sure practically what the minimum numpy is.
>
> The next major release (which will include Python 3 support) bumps the
> minimum requirement up to Python 2.6.
>
> Mike
>
The numpy requirement is whichever one introduced no.nextafter(). I beleive
that is 1.4.
Ben Root
>
From: Warren W. <war...@en...> - 2012年05月11日 21:52:33
On Fri, May 11, 2012 at 4:45 PM, Michael Droettboom <md...@st...> wrote:
> The minimum requirement of the 1.1 series is still Python 2.4, believe it
> or not, though I'm not sure practically what the minimum numpy is.
>
It is at least 1.4; see this thread:
http://old.nabble.com/Upgraded-to-1.1.0,-now-only-line-graphs-work!-td32833484.html
Warren
>
> The next major release (which will include Python 3 support) bumps the
> minimum requirement up to Python 2.6.
>
> Mike
>
>
> On 05/11/2012 05:32 PM, Warren Weckesser wrote:
>
>
>
> On Fri, May 11, 2012 at 3:17 PM, Paul Ivanov <piv...@gm...> wrote:
>
>> Hey everyone,
>>
>> I wanted to highlight Matthew Emmett's (memmett) PR in progress [1] that
>> brings the ability to switch between rcParams.
>>
>> Matthew's implementation started with just being able to read in and use
>> an rcParam file, and I suggested the idea of having a context manager,
>> that would allow you to do something like:
>>
>> with rc_context(fname):
>> plt.plot()
>> ...
>>
>> and have the rcParams restored outside of the context.
>>
>> I know there have been a few threads (can't find links now for some
>> reason) and in-person discussions in the past about having this kind of
>> ability in matplotlib, and having an idea of "styles", and Tony Yu
>> implemented a variant of this on top of matplotlib in mpltools [2], but
>> I wanted to ping the list here for other ideas and feelings about such
>> functionality (if anyone can find pointers to previous discussions, that
>> would be very welcome).
>>
>> 1. https://github.com/matplotlib/matplotlib/pull/861
>> 2. https://github.com/tonysyu/mpltools
>>
>>
>
> You will need Python 2.5 or later to use the 'with' statement. I think
> that is already a requirement of matplotlib, and this page--which says
> 2.4--is not up to date:
> http://matplotlib.sourceforge.net/users/installing.html
> I'm sure the minimum version of numpy given there (1.1) is also wrong.
>
> Warren
>
>
> best,
>> --
>> Paul Ivanov
>> 314 address only used for lists, off-list direct email at:
>> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Matplotlib-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
From: Michael D. <md...@st...> - 2012年05月11日 21:45:54
The minimum requirement of the 1.1 series is still Python 2.4, believe 
it or not, though I'm not sure practically what the minimum numpy is.
The next major release (which will include Python 3 support) bumps the 
minimum requirement up to Python 2.6.
Mike
On 05/11/2012 05:32 PM, Warren Weckesser wrote:
>
>
> On Fri, May 11, 2012 at 3:17 PM, Paul Ivanov <piv...@gm... 
> <mailto:piv...@gm...>> wrote:
>
> Hey everyone,
>
> I wanted to highlight Matthew Emmett's (memmett) PR in progress
> [1] that
> brings the ability to switch between rcParams.
>
> Matthew's implementation started with just being able to read in
> and use
> an rcParam file, and I suggested the idea of having a context manager,
> that would allow you to do something like:
>
> with rc_context(fname):
> plt.plot()
> ...
>
> and have the rcParams restored outside of the context.
>
> I know there have been a few threads (can't find links now for some
> reason) and in-person discussions in the past about having this
> kind of
> ability in matplotlib, and having an idea of "styles", and Tony Yu
> implemented a variant of this on top of matplotlib in mpltools
> [2], but
> I wanted to ping the list here for other ideas and feelings about such
> functionality (if anyone can find pointers to previous
> discussions, that
> would be very welcome).
>
> 1. https://github.com/matplotlib/matplotlib/pull/861
> 2. https://github.com/tonysyu/mpltools
>
>
>
> You will need Python 2.5 or later to use the 'with' statement. I 
> think that is already a requirement of matplotlib, and this 
> page--which says 2.4--is not up to date:
> http://matplotlib.sourceforge.net/users/installing.html
> I'm sure the minimum version of numpy given there (1.1) is also wrong.
>
> Warren
>
>
> best,
> --
> Paul Ivanov
> 314 address only used for lists, off-list direct email at:
> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest in
> malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Tony Yu <ts...@gm...> - 2012年05月11日 21:44:17
On Fri, May 11, 2012 at 4:20 PM, Benjamin Root <ben...@ou...> wrote:
>
>
> On Fri, May 11, 2012 at 4:17 PM, Paul Ivanov <piv...@gm...> wrote:
>
>> Hey everyone,
>>
>> I wanted to highlight Matthew Emmett's (memmett) PR in progress [1] that
>> brings the ability to switch between rcParams.
>>
>> Matthew's implementation started with just being able to read in and use
>> an rcParam file, and I suggested the idea of having a context manager,
>> that would allow you to do something like:
>>
>> with rc_context(fname):
>> plt.plot()
>> ...
>>
>> and have the rcParams restored outside of the context.
>>
>> I know there have been a few threads (can't find links now for some
>> reason) and in-person discussions in the past about having this kind of
>> ability in matplotlib, and having an idea of "styles", and Tony Yu
>> implemented a variant of this on top of matplotlib in mpltools [2], but
>> I wanted to ping the list here for other ideas and feelings about such
>> functionality (if anyone can find pointers to previous discussions, that
>> would be very welcome).
>>
>> 1. https://github.com/matplotlib/matplotlib/pull/861
>> 2. https://github.com/tonysyu/mpltools
>>
>> best,
>> --
>> Paul Ivanov
>> 314 address only used for lists, off-list direct email at:
>> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>>
>>
> Such a feature would clean up the test code considerably.
>
> Ben Root
>
>
Thanks for pinging me on the PR, Paul. Both the original PR and the
addition of the context manager are great ideas.
Just to clarify, what I implemented in mpltools was a sort-of stylesheet
that can be easily accessed (i.e. you don't have to remember the path, just
the name; and if you forget that, it's listed in a module attribute). But,
I ended up using ConfigObj to parse the rc file instead of using
matplotlib's parser. One major disadvantage of that approach is that
ConfigObj uses a different syntax than matplotlib's rc parameters. In this
sense, the PR would help greatly to fix this discrepancy.
Unfortunately, the PR doesn't completely fulfill my needs. I wanted to
allow multiple stylesheets to be declared in a single file; this means I'd
need to plug into the loop that iterates over the lines of the file. I can
push in that direction on the PR, but I don't want to do that unless people
think this would be more-generally useful.
-Tony
From: Warren W. <war...@en...> - 2012年05月11日 21:33:03
On Fri, May 11, 2012 at 3:17 PM, Paul Ivanov <piv...@gm...> wrote:
> Hey everyone,
>
> I wanted to highlight Matthew Emmett's (memmett) PR in progress [1] that
> brings the ability to switch between rcParams.
>
> Matthew's implementation started with just being able to read in and use
> an rcParam file, and I suggested the idea of having a context manager,
> that would allow you to do something like:
>
> with rc_context(fname):
> plt.plot()
> ...
>
> and have the rcParams restored outside of the context.
>
> I know there have been a few threads (can't find links now for some
> reason) and in-person discussions in the past about having this kind of
> ability in matplotlib, and having an idea of "styles", and Tony Yu
> implemented a variant of this on top of matplotlib in mpltools [2], but
> I wanted to ping the list here for other ideas and feelings about such
> functionality (if anyone can find pointers to previous discussions, that
> would be very welcome).
>
> 1. https://github.com/matplotlib/matplotlib/pull/861
> 2. https://github.com/tonysyu/mpltools
>
>
You will need Python 2.5 or later to use the 'with' statement. I think
that is already a requirement of matplotlib, and this page--which says
2.4--is not up to date:
 http://matplotlib.sourceforge.net/users/installing.html
I'm sure the minimum version of numpy given there (1.1) is also wrong.
Warren
best,
> --
> Paul Ivanov
> 314 address only used for lists, off-list direct email at:
> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
From: Benjamin R. <ben...@ou...> - 2012年05月11日 20:20:52
On Fri, May 11, 2012 at 4:17 PM, Paul Ivanov <piv...@gm...> wrote:
> Hey everyone,
>
> I wanted to highlight Matthew Emmett's (memmett) PR in progress [1] that
> brings the ability to switch between rcParams.
>
> Matthew's implementation started with just being able to read in and use
> an rcParam file, and I suggested the idea of having a context manager,
> that would allow you to do something like:
>
> with rc_context(fname):
> plt.plot()
> ...
>
> and have the rcParams restored outside of the context.
>
> I know there have been a few threads (can't find links now for some
> reason) and in-person discussions in the past about having this kind of
> ability in matplotlib, and having an idea of "styles", and Tony Yu
> implemented a variant of this on top of matplotlib in mpltools [2], but
> I wanted to ping the list here for other ideas and feelings about such
> functionality (if anyone can find pointers to previous discussions, that
> would be very welcome).
>
> 1. https://github.com/matplotlib/matplotlib/pull/861
> 2. https://github.com/tonysyu/mpltools
>
> best,
> --
> Paul Ivanov
> 314 address only used for lists, off-list direct email at:
> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>
>
Such a feature would clean up the test code considerably.
Ben Root
From: Paul I. <piv...@gm...> - 2012年05月11日 20:17:54
Hey everyone,
I wanted to highlight Matthew Emmett's (memmett) PR in progress [1] that
brings the ability to switch between rcParams.
Matthew's implementation started with just being able to read in and use
an rcParam file, and I suggested the idea of having a context manager,
that would allow you to do something like:
 with rc_context(fname):
 plt.plot()
 ...
and have the rcParams restored outside of the context.
I know there have been a few threads (can't find links now for some
reason) and in-person discussions in the past about having this kind of
ability in matplotlib, and having an idea of "styles", and Tony Yu
implemented a variant of this on top of matplotlib in mpltools [2], but
I wanted to ping the list here for other ideas and feelings about such
functionality (if anyone can find pointers to previous discussions, that
would be very welcome).
1. https://github.com/matplotlib/matplotlib/pull/861
2. https://github.com/tonysyu/mpltools
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
Hello list,
In working with matplotlib in a Python course we discovered an inconsistency in importing various image files. When importing a JPEG file a numpy array containing ints (0-255) is returned, but when a PNG is imported an array containing floats (0-1) is returned.
The obvious solution is checking for filetype during read and then dividing by 255, but this seems awkward to do outside the library. Also, as discussed at [1] there is the matter of 16 (or 8+) bit images, which might complicate things.
Is there a consensus on how to handle this in code using matplotlib?
Kind regards,
Kasper Loopstra.
[1]: https://github.com/matplotlib/matplotlib/pull/616
From: Benjamin R. <ben...@ou...> - 2012年05月08日 21:09:48
On Tue, May 8, 2012 at 6:51 AM, Ezra Peisach <pei...@rc...>wrote:
> After being fed up with no easy way to adjust the start angle of a pie
> chart, I have added an optional argument to axes.pie called startangle
> that allows one to specify the start angle of a pie chart.
>
> I have updated the documentation - but would a new sample file showing a
> side by side output comparison be warranted as well?
> I had to regenerate a portion of pyplot.py using biolerplate.py - and
> that is why the pctdistance changed very slightly....
>
> Feedback welcome.
>
> The url on github is:
>
> https://github.com/epeisach/matplotlib/compare/master...pie_angle
>
>
> Ezra
>
>
Interesting idea. Why don't you make a pull request and we can see about
putting the final touches on this?
Ben Root
From: Ezra P. <pei...@rc...> - 2012年05月08日 10:51:34
After being fed up with no easy way to adjust the start angle of a pie
chart, I have added an optional argument to axes.pie called startangle
that allows one to specify the start angle of a pie chart.
I have updated the documentation - but would a new sample file showing a
side by side output comparison be warranted as well?
I had to regenerate a portion of pyplot.py using biolerplate.py - and
that is why the pctdistance changed very slightly....
Feedback welcome.
The url on github is:
https://github.com/epeisach/matplotlib/compare/master...pie_angle
Ezra
From: Benjamin R. <ben...@ou...> - 2012年05月05日 19:51:58
On Saturday, May 5, 2012, Tony Yu wrote:
> I'm getting a strange error when multiple figures are created *without a
> call to show*. Here's the traceback:
>
> Traceback (most recent call last):
> File
> "/Users/Tony/python/devel/mpl/lib/matplotlib/backends/backend_qt4.py", line
> 151, in <lambda>
> lambda: self.close_event())
> File "/Users/Tony/python/devel/mpl/lib/matplotlib/backend_bases.py",
> line 1564, in close_event
> self.callbacks.process(s, event)
> AttributeError: 'FigureCanvasQTAgg' object has no attribute 'callbacks'
>
>
> Here's a simple test case:
>
> import matplotlib.pyplot as plt
> fig = plt.figure()
> plt.plot([0, 1])
> fig = plt.figure()
> plt.plot([0, 1])
>
>
> This issue appears in versions after the PR to fix the Qt4 close bug<https://github.com/matplotlib/matplotlib/pull/716>.
> The error occurs even without the `plot` calls, but the failures aren't as
> consistent (the error will randomly disappear).
>
> Note that sticking a call to `plt.show()` at the end and then manually
> closing the figures does not seem to produce this error. I'm having a
> difficult time locating the source of the bug: when I stick a pdb trace in
> the code, the error doesn't get raised.
>
> Can anyone reproduce this issue?
>
> -Tony
>
My gut tells me it is a race condition. Pdb can make race conditions
disappear because of all the overhead screws around with the timings.
Haven't tried reproducing it yet, though.
Ben Root
From: Tony Yu <ts...@gm...> - 2012年05月05日 19:44:49
I'm getting a strange error when multiple figures are created *without a
call to show*. Here's the traceback:
Traceback (most recent call last):
 File
"/Users/Tony/python/devel/mpl/lib/matplotlib/backends/backend_qt4.py", line
151, in <lambda>
 lambda: self.close_event())
 File "/Users/Tony/python/devel/mpl/lib/matplotlib/backend_bases.py", line
1564, in close_event
 self.callbacks.process(s, event)
AttributeError: 'FigureCanvasQTAgg' object has no attribute 'callbacks'
Here's a simple test case:
import matplotlib.pyplot as plt
fig = plt.figure()
plt.plot([0, 1])
fig = plt.figure()
plt.plot([0, 1])
This issue appears in versions after the PR to fix the Qt4 close
bug<https://github.com/matplotlib/matplotlib/pull/716>.
The error occurs even without the `plot` calls, but the failures aren't as
consistent (the error will randomly disappear).
Note that sticking a call to `plt.show()` at the end and then manually
closing the figures does not seem to produce this error. I'm having a
difficult time locating the source of the bug: when I stick a pdb trace in
the code, the error doesn't get raised.
Can anyone reproduce this issue?
-Tony
From: Thomas K. <th...@kl...> - 2012年05月01日 16:56:10
On 1 May 2012 17:26, Chris Barker <chr...@no...> wrote:
> Would there be a problem bringing it in to MPL in that case?
Not from the license point of view - the X11 license is another
permissive BSD-style license. I was just furnishing that detail. ;-)
Thomas
From: Chris B. <chr...@no...> - 2012年05月01日 16:38:46
On Tue, May 1, 2012 at 9:31 AM, Benjamin Root
> AFAIK, no, it shouldn't be a problem. The question is where. I suspect it
> would fit best as a mpl_toolkit.
yes -- I figured that was most likely.
> P.S. - Of course, you do realize that you are essentially making yourself
> the de facto maintainer of it, right?
Well, me or Matt or Carlo -- we'll fight over that among ourselves.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R      (206) 526-6959  voice
7600 Sand Point Way NE  (206) 526-6329  fax
Seattle, WA 98115    (206) 526-6317  main reception
Chr...@no...
From: Benjamin R. <ben...@ou...> - 2012年05月01日 16:31:58
On Tue, May 1, 2012 at 12:26 PM, Chris Barker <chr...@no...> wrote:
> On Tue, May 1, 2012 at 9:23 AM, Thomas Kluyver <th...@kl...>
> wrote:
> > On 1 May 2012 17:04, Chris Barker <chr...@no...> wrote:
> >> (the license looks BSD-ish to me)
> >
> > At a glance, I think it's the X11 license, aka MIT license.
>
>
> Would there be a problem bringing it in to MPL in that case?
>
> -Chris
>
>
AFAIK, no, it shouldn't be a problem. The question is where. I suspect it
would fit best as a mpl_toolkit.
Ben Root
P.S. - Of course, you do realize that you are essentially making yourself
the de facto maintainer of it, right?

Showing results of 52

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