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

Showing 7 results of 7

From: James E. <jre...@ea...> - 2009年10月22日 23:01:31
All,
 
I have a question regarding the default alpha value for an Artist. Why is it 1.0 instead of None? The color conversion code takes
into account if alpha is None and having it default to something other than None makes it impossible for any Patch to have a
fill_color specified as an RGBA value (and possibly other Artist sub-classes). Should this be something else, or should the
Patch.set_facecolor method pre-process the incoming color value and set any specified alpha as appropriate (I hope not since this
would cause the color value to be processed several times)?
 
Thanks,
--James Evans
From: Eric B. <eri...@gm...> - 2009年10月22日 20:55:14
I'm seeing problems with reversed colormaps (attached code and image).
The problem seems to be with colormaps that are specified functionally
or that don't have equal numbers of red, green, and blue entries. For
instance, 'flag', 'rainbow', and 'gist_earth'.
Furthermore, 'gist_rainbow_r' and 'terrain_r' don't plot at all with
the attached code.
I presume this is a regression from earlier behavior, since quite a
few colormaps are affected. svn shows some cleanup to the colormap
code this summer. Can someone with more familiarity with that code
point to the problem?
Thanks,
Eric
From: Georg B. <g.b...@gm...> - 2009年10月22日 19:55:21
I don't have a patch. I just wrote a key handler that runs the snippet
I gave when "q" is pressed. I hope there's a better way to do it anyway :)
Georg
Jae-Joon Lee schrieb:
> Can you post your patch so that others can review?
> 
> Regards,
> 
> -JJ
> 
> 
> On Wed, Oct 21, 2009 at 3:23 AM, Georg Brandl <g.b...@gm...> wrote:
>> Hi,
>>
>> one thing I missed when I switched from Gnuplot to matplotlib was that I
>> can't press "q" to close a window but have to use the window manager; in
>> one environment I work in that means I have to use the mouse to close a
>> window.
>>
>> I made a custom key handler that does the following:
>>
>> try:
>> event.canvas.manager.destroy()
>> except AttributeError:
>> pass
-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
From: Jae-Joon L. <lee...@gm...> - 2009年10月22日 17:42:38
Can you post your patch so that others can review?
Regards,
-JJ
On Wed, Oct 21, 2009 at 3:23 AM, Georg Brandl <g.b...@gm...> wrote:
> Hi,
>
> one thing I missed when I switched from Gnuplot to matplotlib was that I
> can't press "q" to close a window but have to use the window manager; in
> one environment I work in that means I have to use the mouse to close a
> window.
>
> I made a custom key handler that does the following:
>
>    try:
>      event.canvas.manager.destroy()
>    except AttributeError:
>      pass
>
> which seems to work, at least with GtkAgg (I didn't venture to find out
> why the AttributeError is raised, it works in spite of that).
>
> Would it make sense to have that shortcut by default (and working for all
> windowing backends)?
>
> Georg
>
> --
> Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
> Four shall be the number of spaces thou shalt indent, and the number of thy
> indenting shall be four. Eight shalt thou not indent, nor either indent thou
> two, excepting that thou then proceed to four. Tabs are right out.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
From: Michael D. <md...@st...> - 2009年10月22日 13:47:08
The bug was actually in the path simplification. In really degenerate 
cases (bravo for finding it) of paths that are completely outside of the 
clip region, it would create a path with a single LINETO command.
This is now fixed in SVN on the branch and trunk.
Mike
Michael Droettboom wrote:
> Jouni K. Seppänen wrote:
> 
>> Jeff Whitaker <js...@fa...> writes:
>>
>> 
>> 
>>> Jouni: That test script now crashes with:
>>>
>>> File "/Users/jwhitaker/lib/python/matplotlib/backends/backend_pdf.py", 
>>> line 1214, in pathOperations
>>> raise ValueError, 'Path lacks initial MOVETO'
>>> ValueError: Path lacks initial MOVETO
>>> 
>>> 
>> I think this confirms my suspicion that the bug is really elsewhere. A
>> path in PDF needs to begin with a "m" that sets the initial point, and
>> that particular Path object only consisted of one LINETO operation. Am I
>> correct in thinking that this is an invalid path?
>> 
>> 
> Yes -- that path should be considered invalid, though the Path class 
> doesn't do any verification. I'll add this. I'm surprised that it's 
> coming from the line class, which in general doesn't allow for 
> customization of the path codes. There must be something unanticipated 
> happening.
>
> Cheers,
> Mike
>
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
Jouni K. Seppänen wrote:
> Jeff Whitaker <js...@fa...> writes:
>
> 
>> Jouni: That test script now crashes with:
>>
>> File "/Users/jwhitaker/lib/python/matplotlib/backends/backend_pdf.py", 
>> line 1214, in pathOperations
>> raise ValueError, 'Path lacks initial MOVETO'
>> ValueError: Path lacks initial MOVETO
>> 
>
> I think this confirms my suspicion that the bug is really elsewhere. A
> path in PDF needs to begin with a "m" that sets the initial point, and
> that particular Path object only consisted of one LINETO operation. Am I
> correct in thinking that this is an invalid path?
> 
Yes -- that path should be considered invalid, though the Path class 
doesn't do any verification. I'll add this. I'm surprised that it's 
coming from the line class, which in general doesn't allow for 
customization of the path codes. There must be something unanticipated 
happening.
Cheers,
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
Jeff Whitaker <js...@fa...> writes:
> Jouni: That test script now crashes with:
>
> File "/Users/jwhitaker/lib/python/matplotlib/backends/backend_pdf.py", 
> line 1214, in pathOperations
> raise ValueError, 'Path lacks initial MOVETO'
> ValueError: Path lacks initial MOVETO
I think this confirms my suspicion that the bug is really elsewhere. A
path in PDF needs to begin with a "m" that sets the initial point, and
that particular Path object only consisted of one LINETO operation. Am I
correct in thinking that this is an invalid path?
I'm not too familiar with Path (and I'm terribly busy today) but I think
the way to catch this bug is to add a sanity check to Path, similar to
the check in the pdf backend that produces that error. Then the
traceback would show what code is creating the invalid path -- the
traceback from the backend is too late in the execution to tell us that.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks

Showing 7 results of 7

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