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


Showing results of 27

1 2 > >> (Page 1 of 2)
From: Todd <tod...@gm...> - 2013年01月16日 21:02:20
On Wed, Jan 16, 2013 at 2:52 PM, Michael Droettboom <md...@st...> wrote:
> This seems like a good candidate for a MEP. We'd want to take a
> graceful approach to transitioning to properties.
>
> See here for information about MEPs:
>
> https://github.com/matplotlib/matplotlib/wiki
>
> Mike
>
>
>
>
I have created a MEP on the subject, MEP13, and a new mailing list thread
to discuss it.
From: Todd <tod...@gm...> - 2013年01月16日 21:01:03
I have created a very preliminary MEP for the possible move to properties:
https://github.com/matplotlib/matplotlib/wiki/MEP13
Please take a look at it and discuss. As I said, this is very
preliminary. Everything is subject to change.
From: Joe K. <jki...@ge...> - 2013年01月16日 20:55:03
On Jan 16, 2013 2:05 PM, "Todd" <tod...@gm...> wrote:
>
> On Wed, Jan 16, 2013 at 2:55 PM, Benjamin Root <ben...@ou...> wrote:
>>
>>
>> On Wed, Jan 16, 2013 at 2:42 PM, Todd <tod...@gm...> wrote:
>>>
>>> Currently matplotlib uses set_ and get_ functions for reading and
writing values. However, since 2.6 python supports properties, which allow
access to such values as attributes in addition to using the functions
directly. Would it be worthwhile implementing property support in
matplotlib?
>>>
>>
>> This was actually discussed during a Birds of a Feather (BOF) meeting
back in SciPy2012 (which John Hunter attended). I am definitely for the
idea, but it is going to be a very painful and long deprecation process.
>>
> Is there a reason we have to deprecate the current method? They are not
mutually-exclusive.
>
Also along these lines, it's relatively easy to write a metaclass to make
everything with an explicit set and get method have a property as well.
It's a bit on the magical side, but not too bad.
There are a few things that would have name clashes (e.g. ax.figure and
ax.set_figure) but the vast majority of these would only require manual
code tweaking and would not require an api change, as they already behave
as the property would.
This way you could still have setp and the like along with the properties
and avoid any depreciation. It also would only require minimal code changes
(but significant documentation additions).
Just my two cents, anyway.
>
>
------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE 49ドル.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
From: Benjamin R. <ben...@ou...> - 2013年01月16日 20:24:05
On Wed, Jan 16, 2013 at 3:05 PM, Todd <tod...@gm...> wrote:
> On Wed, Jan 16, 2013 at 2:55 PM, Benjamin Root <ben...@ou...> wrote:
>
>>
>> On Wed, Jan 16, 2013 at 2:42 PM, Todd <tod...@gm...> wrote:
>>
>>> Currently matplotlib uses set_ and get_ functions for reading and
>>> writing values. However, since 2.6 python supports properties, which allow
>>> access to such values as attributes in addition to using the functions
>>> directly. Would it be worthwhile implementing property support in
>>> matplotlib?
>>>
>>>
>> This was actually discussed during a Birds of a Feather (BOF) meeting
>> back in SciPy2012 (which John Hunter attended). I am definitely for the
>> idea, but it is going to be a very painful and long deprecation process.
>>
>> Is there a reason we have to deprecate the current method? They are not
> mutually-exclusive.
>
>
But, then what is the gain of switching to the properties approach?
Properties allows you to clean up one's API, and also enables
code-execution upon get/sets. We don't really have much of a need for the
latter, except in a few places. I would see a move to properties as a way
to clean up our API back to the just the getp() setp() approach for
portability with matlab.
Note, I am a fan of moving to properties, but all of this will have to be
thought-out.
Ben Root
From: Damon M. <dam...@gm...> - 2013年01月16日 20:12:49
On Wed, Jan 16, 2013 at 10:54 AM, Todd <tod...@gm...> wrote:
> On Jan 16, 2013 9:30 AM, "Fernando Perez" <fpe...@gm...> wrote:
>>
>> On Wed, Jan 16, 2013 at 12:10 AM, Nelle Varoquaux
>> <nel...@gm...> wrote:
>>
>> > Last but not least, maybe we can see what numfocus has to offer.
>>
>> Absolutely! I'll be offline for two weeks, but others on the list can
>> certainly propose this to numfocus on the list and we can look into
>> what can be done, esp. in a way that could also help other projects as
>> well.
>>
>> Also, there's snakebite: http://www.snakebite.net. The project seemed
>> very dormant for a long time, but there's been some activity since:
>> http://www.snakebite.net/network. I'd ping Titus Brown on Twitter
>> (@ctitusbrown) for info...
>>
>> Cheers,
>
> There is also the open build service, which is more of a build farm but can
> be set up pull, build, test, and publish git snapshots for most common Linux
> distributions to your own online software repository simultaneously with one
> click on a website or one commandline call.
>
> https://build.opensuse.org/
>
> They provide hosting, building, and distribution for free. You can probably
> set up a script to automatically rebuild master on a change, or daily.
> However, setting it up to test individual commits would be overly difficult
> and probably be seen as an abuse of the system. Using it to always build,
> test, and release offer the latest master to most linux distros, on the
> other hand, would be fine. If someone contacts them they can probably set
> up a repository just for you, or if this sort of thing is useful a more
> general repository you can share with others (there is already
> devel:languages:python, maybe devel:languages:python:unstable).
>
> You can also use it to build release rpms and debs for various distros. It
> is already being used to build the packages discussed so far for openSUSE,
> but if someone is willing to maintain them they can be built for other
> distros as well.
GitHub allow for a custom service-hook. If, as Mike says, it's not too
hard to garner compute cycles, it shouldn't be too hard to write a
small script to execute the test suite when the github repo receives a
push.
-- 
Damon McDougall
http://www.damon-is-a-geek.com
Institute for Computational Engineering Sciences
201 E. 24th St.
Stop C0200
The University of Texas at Austin
Austin, TX 78712-1229
From: Todd <tod...@gm...> - 2013年01月16日 20:05:41
On Wed, Jan 16, 2013 at 2:55 PM, Benjamin Root <ben...@ou...> wrote:
>
> On Wed, Jan 16, 2013 at 2:42 PM, Todd <tod...@gm...> wrote:
>
>> Currently matplotlib uses set_ and get_ functions for reading and writing
>> values. However, since 2.6 python supports properties, which allow access
>> to such values as attributes in addition to using the functions directly.
>> Would it be worthwhile implementing property support in matplotlib?
>>
>>
> This was actually discussed during a Birds of a Feather (BOF) meeting back
> in SciPy2012 (which John Hunter attended). I am definitely for the idea,
> but it is going to be a very painful and long deprecation process.
>
> Is there a reason we have to deprecate the current method? They are not
mutually-exclusive.
From: Benjamin R. <ben...@ou...> - 2013年01月16日 19:56:18
On Wed, Jan 16, 2013 at 2:42 PM, Todd <tod...@gm...> wrote:
> Currently matplotlib uses set_ and get_ functions for reading and writing
> values. However, since 2.6 python supports properties, which allow access
> to such values as attributes in addition to using the functions directly.
> Would it be worthwhile implementing property support in matplotlib?
>
>
This was actually discussed during a Birds of a Feather (BOF) meeting back
in SciPy2012 (which John Hunter attended). I am definitely for the idea,
but it is going to be a very painful and long deprecation process. A bit
of background (at least, my understanding of it)...
In matlab, there is the setp and getp functions. With this, you can set
and get properties of various graphing objects. It is this feature that
John duplicated, and it is the organic growth from there is why we are
where we are now.
Furthermore, for those who haven't noticed, we have a strange "alias"
feature. For example, one could set edgecolor, but also ec, to the same
effect. In a lark, I decided to trace down this feature and, to my horror,
discovered how it works. Believe it or not, the docstring for
set_edgecolor (or get_edgecolor, I forget) mentions that "ec" is an alias,
and there is code elsewhere that processes the docstrings, looking for
mentions of aliases, and uses that to guide the setting of properties. Of
course, don't forget that sometimes we do the plural of a property name as
well...
Rather than keeping these attributes as a part of the artist objects, I
would rather encapsulate the artist properties using a new Properties class
(maybe it subclasses from dict?). This would make it easier to apply/share
properties between many objects, and be more future-proof.
My 2 cents,
Ben Root
From: Michael D. <md...@st...> - 2013年01月16日 19:54:06
This seems like a good candidate for a MEP. We'd want to take a 
graceful approach to transitioning to properties.
See here for information about MEPs:
https://github.com/matplotlib/matplotlib/wiki
Mike
On 01/16/2013 02:42 PM, Todd wrote:
> Currently matplotlib uses set_ and get_ functions for reading and 
> writing values. However, since 2.6 python supports properties, which 
> allow access to such values as attributes in addition to using the 
> functions directly. Would it be worthwhile implementing property 
> support in matplotlib?
>
>
> ------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE 49ドル.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
>
>
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Todd <tod...@gm...> - 2013年01月16日 19:43:11
Currently matplotlib uses set_ and get_ functions for reading and writing
values. However, since 2.6 python supports properties, which allow access
to such values as attributes in addition to using the functions directly.
Would it be worthwhile implementing property support in matplotlib?
From: Paulo C. P. de A. <pau...@gm...> - 2013年01月16日 19:24:53
2013年1月16日 Michael Droettboom <md...@st...>:
[...]
>> $ ls /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/
>> LICENSE_STIX STIXNonUniBol.ttf STIXSizOneSymBol.ttf
>> STIXGeneralBolIta.ttf STIXNonUniIta.ttf STIXSizOneSymReg.ttf
>> STIXGeneralBol.ttf STIXNonUni.ttf STIXSizThreeSymBol.ttf
>> STIXGeneralItalic.ttf STIXSizFiveSymReg.ttf STIXSizThreeSymReg.ttf
>> STIXGeneral.ttf STIXSizFourSymBol.ttf STIXSizTwoSymBol.ttf
>> STIXNonUniBolIta.ttf STIXSizFourSymReg.ttf STIXSizTwoSymReg.ttf
>>
>> This should require asking permission for bundling, but not duplicating
>> as ttf stix font are not installed. Before asking for it, you may want to
>> look at the test results:
 BTW, note that asking for such permissions may take a very long time,
and may be "denied" unless there is a very convincing reason to bundle it...
>> http://pcpa.fedorapeople.org/matplotlib-2.7-mpl-data-with-bundled-stix-ttf.txt
>> Because I did not see any difference on the results, so I probably missed
>> some step...
>
>
> Did you turn USE_FONTCONFIG back to False? font-config won't find fonts
> here, but matplotlib's built-in font lookup mechanism will.
 Ops :-) but I think something is still messed, maybe it is getting confused
by finding system STIX 1.1 before the bundled ones somehow:
http://pcpa.fedorapeople.org/matplotlib-2.7-bundled-stix-ttf+fontconfig=false.txt
> Mike
Paulo
From: Michael D. <md...@st...> - 2013年01月16日 19:09:12
On 01/16/2013 01:32 PM, Paulo César Pereira de Andrade wrote:
> 2013年1月16日 Michael Droettboom <md...@st...>:
>
>> There was a very silly bug lurking in USE_FONTCONFIG=True mode, and I've
>> made a PR with a fix here:
>>
>> https://github.com/matplotlib/matplotlib/pull/1666
> Updated test case with that patch:
> http://pcpa.fedorapeople.org/matplotlib-2.7+pull-1666.txt
>
>> However, I thought I'd investigate the issue with the STIX fonts -- I
>> actually just upgraded to F18 yesterday, so I thought I'd try what you
>> suggest and get matplotlib to use them.
>>
>> Thanks for taking on packaging for matplotlib, and thanks for understanding
>> the importance of running the test suite.
>>
>> It seems that the stix fonts packages in Fedora only come in .otf format --
>> I believe this is how they are shipped upstream as well. Unfortunately,
>> matplotlib has no support for reading .otf files, so these are simply
>> unusable to matplotlib.
>>
>> There are some options:
>>
>> 1) Include the STIX ttf fonts included with matplotlib in the matplotlib
>> package and install them in `matplotlib/mpl-data/fonts/ttf` (as a vanilla
>> install would do) so as not to conflict with the stix-fonts package. Maybe
>> these go in a python-matplotlib-stix-fonts package.
> For the sake of correctness, I believe this should be the better option.
> I did:
> $ sudo mkdir /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf
> $ sudo cp -a matplotlib-1.2.0/lib/matplotlib/mpl-data/fonts/ttf/*STIX*
> /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fontsSave: No
> changes need to be saved, save again to override -- nothing saved.
> $ ls /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/
> LICENSE_STIX STIXNonUniBol.ttf STIXSizOneSymBol.ttf
> STIXGeneralBolIta.ttf STIXNonUniIta.ttf STIXSizOneSymReg.ttf
> STIXGeneralBol.ttf STIXNonUni.ttf STIXSizThreeSymBol.ttf
> STIXGeneralItalic.ttf STIXSizFiveSymReg.ttf STIXSizThreeSymReg.ttf
> STIXGeneral.ttf STIXSizFourSymBol.ttf STIXSizTwoSymBol.ttf
> STIXNonUniBolIta.ttf STIXSizFourSymReg.ttf STIXSizTwoSymReg.ttf
>
> This should require asking permission for bundling, but not duplicating
> as ttf stix font are not installed. Before asking for it, you may want to
> look at the test results:
> http://pcpa.fedorapeople.org/matplotlib-2.7-mpl-data-with-bundled-stix-ttf.txt
> Because I did not see any difference on the results, so I probably missed
> some step...
Did you turn USE_FONTCONFIG back to False? font-config won't find fonts 
here, but matplotlib's built-in font lookup mechanism will.
Mike
>
>> 2) Include a version of the STIX fonts converted to ttf. This will still
>> have the problem that the glyph tables in matplotlib need to be updated to
>> use them.
>>
>> 3) Update matplotlib's freetype wrapper to support .otf fonts. Doable, but
>> considerable work.
>>
>> 4) Leave it as is but warn that STIX font support is broken with the Fedora
>> matplotlib package.
>>
>> Mike
> I actually did submit an update
> https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-7.fc18
> before you posted about
> https://github.com/matplotlib/matplotlib/pull/1666
> So would prefer a more complete review before overriding it.
> The update should be in queue for a week before going to
> mirrors, so it can be revoked and a better update submitted.
>
> Thanks,
> Paulo
From: Paulo C. P. de A. <pau...@gm...> - 2013年01月16日 18:32:28
2013年1月16日 Michael Droettboom <md...@st...>:
> There was a very silly bug lurking in USE_FONTCONFIG=True mode, and I've
> made a PR with a fix here:
>
> https://github.com/matplotlib/matplotlib/pull/1666
 Updated test case with that patch:
http://pcpa.fedorapeople.org/matplotlib-2.7+pull-1666.txt
> However, I thought I'd investigate the issue with the STIX fonts -- I
> actually just upgraded to F18 yesterday, so I thought I'd try what you
> suggest and get matplotlib to use them.
>
> Thanks for taking on packaging for matplotlib, and thanks for understanding
> the importance of running the test suite.
>
> It seems that the stix fonts packages in Fedora only come in .otf format --
> I believe this is how they are shipped upstream as well. Unfortunately,
> matplotlib has no support for reading .otf files, so these are simply
> unusable to matplotlib.
>
> There are some options:
>
> 1) Include the STIX ttf fonts included with matplotlib in the matplotlib
> package and install them in `matplotlib/mpl-data/fonts/ttf` (as a vanilla
> install would do) so as not to conflict with the stix-fonts package. Maybe
> these go in a python-matplotlib-stix-fonts package.
 For the sake of correctness, I believe this should be the better option.
I did:
$ sudo mkdir /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf
$ sudo cp -a matplotlib-1.2.0/lib/matplotlib/mpl-data/fonts/ttf/*STIX*
/usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fontsSave: No
changes need to be saved, save again to override -- nothing saved.
$ ls /usr/lib64/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf/
LICENSE_STIX STIXNonUniBol.ttf STIXSizOneSymBol.ttf
STIXGeneralBolIta.ttf STIXNonUniIta.ttf STIXSizOneSymReg.ttf
STIXGeneralBol.ttf STIXNonUni.ttf STIXSizThreeSymBol.ttf
STIXGeneralItalic.ttf STIXSizFiveSymReg.ttf STIXSizThreeSymReg.ttf
STIXGeneral.ttf STIXSizFourSymBol.ttf STIXSizTwoSymBol.ttf
STIXNonUniBolIta.ttf STIXSizFourSymReg.ttf STIXSizTwoSymReg.ttf
This should require asking permission for bundling, but not duplicating
as ttf stix font are not installed. Before asking for it, you may want to
look at the test results:
http://pcpa.fedorapeople.org/matplotlib-2.7-mpl-data-with-bundled-stix-ttf.txt
Because I did not see any difference on the results, so I probably missed
some step...
> 2) Include a version of the STIX fonts converted to ttf. This will still
> have the problem that the glyph tables in matplotlib need to be updated to
> use them.
>
> 3) Update matplotlib's freetype wrapper to support .otf fonts. Doable, but
> considerable work.
>
> 4) Leave it as is but warn that STIX font support is broken with the Fedora
> matplotlib package.
>
> Mike
I actually did submit an update
https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-7.fc18
before you posted about
https://github.com/matplotlib/matplotlib/pull/1666
So would prefer a more complete review before overriding it.
The update should be in queue for a week before going to
mirrors, so it can be revoked and a better update submitted.
Thanks,
Paulo
From: Michael D. <md...@st...> - 2013年01月16日 17:55:41
On 01/16/2013 12:22 PM, Paulo César Pereira de Andrade wrote:
> 2013年1月16日 Michael Droettboom <md...@st...>:
>
>>> -USE_FONTCONFIG = False
>>> +USE_FONTCONFIG = True
> [...]
>>> I think this is safe to be made a patch for Linux distros. I believe this could
>>> be the default for *Linux and *BSD in matplotlib.
>>>
>> This will silence things, and I agree it probably should be the default
>> on Linux, but I'm not sure if it's correct. If F18 really does have
> So far I managed to "apparently" solve my issues with my work in
> progress sagemath package for fedora.
>
>> STIX 1.1, then it's not going to work since the layout of the fonts has
>> changed so much. That's going to require a great deal of effort. Can
> Yes, it has STIX 1.1.
>
>> you successfully run the test suite with this change? That should catch
> Sorry that I am not much experienced with matplotlib, but I am willing to
> help in whatever I can, given that now I can modify/update the matplotlib
> package in Fedora. After running it for the first time, and not looking
> much at the sources, it appears to have way too many test failures...
>
> $ nosetests-2.7 -v matplotlib.tests 2>&1 | tee ~/matplotlib-2.7.txt
> http://pcpa.fedorapeople.org/matplotlib-2.7.txt
>
> $ nosetests-3.3 -v matplotlib.tests 2>&1 | tee ~/matplotlib-3.3.txt
> http://pcpa.fedorapeople.org/matplotlib-3.3.txt
>
>> any glyph mismatch problems. Is there a way to have the package depend
>> on 1.0 version of the fonts until matplotlib has a chance to update its
>> tables?
> I am afraid this may not be an option (using stix fonts 1.0).
>
>
There was a very silly bug lurking in USE_FONTCONFIG=True mode, and I've 
made a PR with a fix here:
https://github.com/matplotlib/matplotlib/pull/1666
However, I thought I'd investigate the issue with the STIX fonts -- I 
actually just upgraded to F18 yesterday, so I thought I'd try what you 
suggest and get matplotlib to use them.
Thanks for taking on packaging for matplotlib, and thanks for 
understanding the importance of running the test suite.
It seems that the stix fonts packages in Fedora only come in .otf format 
-- I believe this is how they are shipped upstream as well. 
Unfortunately, matplotlib has no support for reading .otf files, so 
these are simply unusable to matplotlib.
There are some options:
1) Include the STIX ttf fonts included with matplotlib in the matplotlib 
package and install them in `matplotlib/mpl-data/fonts/ttf` (as a 
vanilla install would do) so as not to conflict with the stix-fonts 
package. Maybe these go in a python-matplotlib-stix-fonts package.
2) Include a version of the STIX fonts converted to ttf. This will 
still have the problem that the glyph tables in matplotlib need to be 
updated to use them.
3) Update matplotlib's freetype wrapper to support .otf fonts. Doable, 
but considerable work.
4) Leave it as is but warn that STIX font support is broken with the 
Fedora matplotlib package.
Mike
From: Michael D. <md...@st...> - 2013年01月16日 17:23:23
There have been bits and pieces of discussion about future releases on 
PRs, and I thought I'd bring it over here to tie loose ends together.
There have been 83 commits since 1.2.0 -- it's probably time to start 
thinking about a 1.2.1. The release candidate cycle shouldn't be as 
long for this, as it's only a bugfix release. If you are aware of any 
issues or PRs in the tracker that make sense for 1.2.1 (i.e. simple 
bugfixes), please assign to the 1.2.x milestone. Once that milestone is 
empty, sometime next week I will probably put out a 1.2.1rc1.
As for 1.3, we have MEP10 (documentation improvements) spearheaded by 
Nelle and MEP12 (gallery reorganization) spearheaded by Tony that I'd 
like to get in before that release. Both of these changes require a lot 
of manual work, but it's fairly separable work. Perhaps we can divide 
the modules amongst a number of volunteers so the fearless leaders of 
both these projects shoulders less of the burden? Given the size of 
these projects, that probably means holding off on 1.3 for some time, 
but we can always do another 1.2.x in the meantime.
Does this make sense? Any additional thoughts?
Cheers,
Mike
From: Paulo C. P. de A. <pau...@gm...> - 2013年01月16日 17:22:22
2013年1月16日 Michael Droettboom <md...@st...>:
>> -USE_FONTCONFIG = False
>> +USE_FONTCONFIG = True
[...]
>> I think this is safe to be made a patch for Linux distros. I believe this could
>> be the default for *Linux and *BSD in matplotlib.
>>
> This will silence things, and I agree it probably should be the default
> on Linux, but I'm not sure if it's correct. If F18 really does have
 So far I managed to "apparently" solve my issues with my work in
progress sagemath package for fedora.
> STIX 1.1, then it's not going to work since the layout of the fonts has
> changed so much. That's going to require a great deal of effort. Can
 Yes, it has STIX 1.1.
> you successfully run the test suite with this change? That should catch
 Sorry that I am not much experienced with matplotlib, but I am willing to
help in whatever I can, given that now I can modify/update the matplotlib
package in Fedora. After running it for the first time, and not looking
much at the sources, it appears to have way too many test failures...
$ nosetests-2.7 -v matplotlib.tests 2>&1 | tee ~/matplotlib-2.7.txt
http://pcpa.fedorapeople.org/matplotlib-2.7.txt
$ nosetests-3.3 -v matplotlib.tests 2>&1 | tee ~/matplotlib-3.3.txt
http://pcpa.fedorapeople.org/matplotlib-3.3.txt
> any glyph mismatch problems. Is there a way to have the package depend
> on 1.0 version of the fonts until matplotlib has a chance to update its
> tables?
 I am afraid this may not be an option (using stix fonts 1.0).
> Mike
Thanks,
Paulo
From: Todd <tod...@gm...> - 2013年01月16日 16:55:25
On Jan 16, 2013 9:30 AM, "Fernando Perez" <fpe...@gm...> wrote:
>
> On Wed, Jan 16, 2013 at 12:10 AM, Nelle Varoquaux
> <nel...@gm...> wrote:
>
> > Last but not least, maybe we can see what numfocus has to offer.
>
> Absolutely! I'll be offline for two weeks, but others on the list can
> certainly propose this to numfocus on the list and we can look into
> what can be done, esp. in a way that could also help other projects as
> well.
>
> Also, there's snakebite: http://www.snakebite.net. The project seemed
> very dormant for a long time, but there's been some activity since:
> http://www.snakebite.net/network. I'd ping Titus Brown on Twitter
> (@ctitusbrown) for info...
>
> Cheers,
There is also the open build service, which is more of a build farm but can
be set up pull, build, test, and publish git snapshots for most common
Linux distributions to your own online software repository simultaneously
with one click on a website or one commandline call.
https://build.opensuse.org/
They provide hosting, building, and distribution for free. You can
probably set up a script to automatically rebuild master on a change, or
daily. However, setting it up to test individual commits would be overly
difficult and probably be seen as an abuse of the system. Using it to
always build, test, and release offer the latest master to most linux
distros, on the other hand, would be fine. If someone contacts them they
can probably set up a repository just for you, or if this sort of thing is
useful a more general repository you can share with others (there is
already devel:languages:python, maybe devel:languages:python:unstable).
You can also use it to build release rpms and debs for various distros. It
is already being used to build the packages discussed so far for openSUSE,
but if someone is willing to maintain them they can be built for other
distros as well.
From: Michael D. <md...@st...> - 2013年01月16日 16:23:51
On 01/16/2013 10:38 AM, Paulo César Pereira de Andrade wrote:
> 2012年12月8日 Paulo César Pereira de Andrade
> <pau...@gm...>:
>> Hi,
>>
>> Recently I asked to become comaintainer of matplotlib in Fedora and
>> did update to 1.2.0
> [...]
>
>> doctest:1214: UserWarning: findfont: Font family ['STIXGeneral']
>> not found. Falling back to Bitstream Vera Sans
> [...]
>
>> I opened two bug reports about it at:
>> https://bugzilla.redhat.com/show_bug.cgi?id=885307 and
>> https://bugzilla.redhat.com/show_bug.cgi?id=885312
> [...]
>
> I just did look at it again a bit more, and found that the solution is quite
> simple. Just need the pseudo patch:
>
> ---%<---
> $ diff -u /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py{.orig,}
> --- /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py.orig
> 2013年01月16日 13:25:07.922646400 -0200
> +++ /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py
> 2013年01月16日 13:25:10.931646515 -0200
> @@ -62,7 +62,7 @@
> except ImportError:
> import pickle
>
> -USE_FONTCONFIG = False
> +USE_FONTCONFIG = True
>
> verbose = matplotlib.verbose
>
> ---%<---
>
> I think this is safe to be made a patch for Linux distros. I believe this could
> be the default for *Linux and *BSD in matplotlib.
>
This will silence things, and I agree it probably should be the default 
on Linux, but I'm not sure if it's correct. If F18 really does have 
STIX 1.1, then it's not going to work since the layout of the fonts has 
changed so much. That's going to require a great deal of effort. Can 
you successfully run the test suite with this change? That should catch 
any glyph mismatch problems. Is there a way to have the package depend 
on 1.0 version of the fonts until matplotlib has a chance to update its 
tables?
Mike
From: Ryan M. <rm...@gm...> - 2013年01月16日 15:57:07
On Tue, Jan 15, 2013 at 6:20 PM, Damon McDougall
<dam...@gm...>wrote:
> Hi all,
>
> Recently, it has become more and more common that the travis builds
> fail. They fail not because the test suite fails but because of some
> inherent issues with travis itself. Usually, either the git clone
> fails or some other simple shell command fails. I consider these
> 'failures' as being false negatives. While a false negative once or
> twice a month would not be anything to worry about, I feel like this
> is happening often enough to render the pull request status extremely
> unhelpful.
>
I haven't been active enough lately to have a good feel overall on the
false negatives. What I can say right now is that it would help if we would
disable python 3.1 (and optionally replace it with 3.3). I believe (based
on numpy commit I saw the other day) that Travis no longer supports 3.1.
That would solve the failures I've seen with my PR's.
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Paulo C. P. de A. <pau...@gm...> - 2013年01月16日 15:38:46
2012年12月8日 Paulo César Pereira de Andrade
<pau...@gm...>:
> Hi,
>
> Recently I asked to become comaintainer of matplotlib in Fedora and
> did update to 1.2.0
[...]
> doctest:1214: UserWarning: findfont: Font family ['STIXGeneral']
> not found. Falling back to Bitstream Vera Sans
[...]
> I opened two bug reports about it at:
> https://bugzilla.redhat.com/show_bug.cgi?id=885307 and
> https://bugzilla.redhat.com/show_bug.cgi?id=885312
[...]
I just did look at it again a bit more, and found that the solution is quite
simple. Just need the pseudo patch:
---%<---
$ diff -u /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py{.orig,}
--- /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py.orig
 2013年01月16日 13:25:07.922646400 -0200
+++ /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py
 2013年01月16日 13:25:10.931646515 -0200
@@ -62,7 +62,7 @@
 except ImportError:
 import pickle
-USE_FONTCONFIG = False
+USE_FONTCONFIG = True
 verbose = matplotlib.verbose
---%<---
I think this is safe to be made a patch for Linux distros. I believe this could
be the default for *Linux and *BSD in matplotlib.
Thanks,
Paulo
From: Michael D. <md...@st...> - 2013年01月16日 15:27:00
On 01/16/2013 07:15 AM, Thomas Kluyver wrote:
> On 16 January 2013 08:35, Nathaniel Smith <nj...@po... 
> <mailto:nj...@po...>> wrote:
>
> When this has come up on the numfocus list before the status was,
> sure, they can provide resources/funding if you can find someone
> to do the actual work :-). If anyone is interested in putting in
> the time to solve this problem properly then a lot of projects
> would be grateful I think...
>
>
> We'd certainly be interested in a better solution for IPython - I 
> think we see more Travis builds failing because of Travis than because 
> of the actual code.
>
> Before Travis started testing pull requests, we wrote our own 
> test_pr.py script [1], which fetches a PR, merges it into master, 
> tests on several versions of Python, and (optionally) posts a comment 
> to Github with the results. This should be pretty easy to adapt to 
> other projects - NetworkX already decide to use it [2]. With a little 
> more code, I imagine we could configure a server to regularly scan 
> pull requests for changes and test them.
This definitely would be worth investigating. At least in my 
institution, finding CPU time isn't terribly difficult. Hosting our own 
network services is -- so something that does builds locally and then 
publishes the results somewhere else (i.e. Github) may make a lot of sense.
>
> Sympy also have a system for automatically testing pull requests [3]. 
> I think this is somewhat more advanced, with a queue on Google 
> Appengine, and workers which pull jobs from the queue.
>
> Finally, we're keen users of ShiningPanda [4]. It doesn't test pull 
> requests, but it's reliable, and can handle things like coverage 
> metrics nicely.
The matplotlib test suite is really CPU-intensive, and the last time I 
did the math, the ShiningPanda free plan was too tight -- it's about an 
hour of CPU time (on ShiningPanda's machines) per test for 4 
Numpy/Python combinations. It's about 0ドル.50/hr, and you get 6ドル free per 
month.
I really like ShiningPanda, mostly for how flexible the setup of 
prerequisites are, but it will cost some money to use.
Cheers,
Mike
>
> [1] https://github.com/ipython/ipython/blob/master/tools/test_pr.py
> [2] https://github.com/networkx/networkx/pull/752
> [3] http://reviews.sympy.org/
> [4] https://jenkins.shiningpanda.com/ipython/
>
> Best wishes,
> Thomas
>
>
> ------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE 49ドル.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
>
>
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Thomas K. <th...@kl...> - 2013年01月16日 12:24:04
On 16 January 2013 08:35, Nathaniel Smith <nj...@po...> wrote:
> When this has come up on the numfocus list before the status was, sure,
> they can provide resources/funding if you can find someone to do the actual
> work :-). If anyone is interested in putting in the time to solve this
> problem properly then a lot of projects would be grateful I think...
We'd certainly be interested in a better solution for IPython - I think we
see more Travis builds failing because of Travis than because of the actual
code.
Before Travis started testing pull requests, we wrote our own test_pr.py
script [1], which fetches a PR, merges it into master, tests on several
versions of Python, and (optionally) posts a comment to Github with the
results. This should be pretty easy to adapt to other projects - NetworkX
already decide to use it [2]. With a little more code, I imagine we could
configure a server to regularly scan pull requests for changes and test
them.
Sympy also have a system for automatically testing pull requests [3]. I
think this is somewhat more advanced, with a queue on Google Appengine, and
workers which pull jobs from the queue.
Finally, we're keen users of ShiningPanda [4]. It doesn't test pull
requests, but it's reliable, and can handle things like coverage metrics
nicely.
[1] https://github.com/ipython/ipython/blob/master/tools/test_pr.py
[2] https://github.com/networkx/networkx/pull/752
[3] http://reviews.sympy.org/
[4] https://jenkins.shiningpanda.com/ipython/
Best wishes,
Thomas
From: Nathaniel S. <nj...@po...> - 2013年01月16日 08:41:53
On 16 Jan 2013 09:30, "Fernando Perez" <fpe...@gm...> wrote:
>
> On Wed, Jan 16, 2013 at 12:10 AM, Nelle Varoquaux
> <nel...@gm...> wrote:
>
> > Last but not least, maybe we can see what numfocus has to offer.
>
> Absolutely! I'll be offline for two weeks, but others on the list can
> certainly propose this to numfocus on the list and we can look into
> what can be done, esp. in a way that could also help other projects as
> well.
When this has come up on the numfocus list before the status was, sure,
they can provide resources/funding if you can find someone to do the actual
work :-). If anyone is interested in putting in the time to solve this
problem properly then a lot of projects would be grateful I think...
-n
From: Fernando P. <fpe...@gm...> - 2013年01月16日 08:30:21
On Wed, Jan 16, 2013 at 12:10 AM, Nelle Varoquaux
<nel...@gm...> wrote:
> Last but not least, maybe we can see what numfocus has to offer.
Absolutely! I'll be offline for two weeks, but others on the list can
certainly propose this to numfocus on the list and we can look into
what can be done, esp. in a way that could also help other projects as
well.
Also, there's snakebite: http://www.snakebite.net. The project seemed
very dormant for a long time, but there's been some activity since:
http://www.snakebite.net/network. I'd ping Titus Brown on Twitter
(@ctitusbrown) for info...
Cheers,
f
From: Nelle V. <nel...@gm...> - 2013年01月16日 08:10:22
>> Hi all,
>>
>> Recently, it has become more and more common that the travis builds
>> fail. They fail not because the test suite fails but because of some
>> inherent issues with travis itself. Usually, either the git clone
>> fails or some other simple shell command fails. I consider these
>> 'failures' as being false negatives. While a false negative once or
>> twice a month would not be anything to worry about, I feel like this
>> is happening often enough to render the pull request status extremely
>> unhelpful.
>>
>> I realise the above is merely my opinion, but I feel that I would be
>> surprised if others did not find the Travis' false negative hit rate
>> tiresome.
>
> Agreed.
>
>>
>> If practical, I would like to move away from travis and have our test
>> suite run on a more reliable service. How do others feel about this?
>>
>
> Good--but what is the superior alternative?
There's shiningpanda: this is what scikit-learn now uses (with
travis-ci): https://jenkins.shiningpanda.com/scikit-learn/
It's quite flexible, but I think you are limited to only a couple of
builds per day on master. It doesn't really replace travis, as travis
is supposed to run against PR but it is better than nothing.
Previously, scikit-learn used buildbot, hosted on one of the french
python association. I've got access to the server, and I can ask the
board members if we can set up a buildbot there. I'm sure that's not a
problem. But, once again, this will run the tests on master, not on
the PR.
Last but not least, maybe we can see what numfocus has to offer.
>
> I know nothing about who offers such services, why they do so, or the
> quality of the service.
>
> Eric
>
> ------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE 49ドル.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Eric F. <ef...@ha...> - 2013年01月16日 05:58:02
On 2013年01月15日 2:20 PM, Damon McDougall wrote:
> Hi all,
>
> Recently, it has become more and more common that the travis builds
> fail. They fail not because the test suite fails but because of some
> inherent issues with travis itself. Usually, either the git clone
> fails or some other simple shell command fails. I consider these
> 'failures' as being false negatives. While a false negative once or
> twice a month would not be anything to worry about, I feel like this
> is happening often enough to render the pull request status extremely
> unhelpful.
>
> I realise the above is merely my opinion, but I feel that I would be
> surprised if others did not find the Travis' false negative hit rate
> tiresome.
Agreed.
>
> If practical, I would like to move away from travis and have our test
> suite run on a more reliable service. How do others feel about this?
>
Good--but what is the superior alternative?
I know nothing about who offers such services, why they do so, or the 
quality of the service.
Eric

Showing results of 27

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