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


Showing 13 results of 13

From: Benjamin R. <ben...@ou...> - 2011年03月07日 21:08:47
On Mon, Mar 7, 2011 at 10:39 AM, Darren Dale <dsd...@gm...> wrote:
> On Mon, Mar 7, 2011 at 11:24 AM, Benjamin Root <ben...@ou...> wrote:
> >
> >
> > On Mon, Mar 7, 2011 at 10:20 AM, Darren Dale <dsd...@gm...> wrote:
> >>
> >> On Mon, Mar 7, 2011 at 11:04 AM, Benjamin Root <ben...@ou...> wrote:
> >> >
> >> >
> >> > On Fri, Mar 4, 2011 at 4:23 AM, Martin Teichmann
> >> > <lkb...@gm...>
> >> > wrote:
> >> >>
> >> >> Hi Ben, Hi list,
> >> >>
> >> >> > Exactly. That's all I found too. Nothing indicates that we need
> to
> >> >> > change anything. We are throwing away the second part of the tuple
> >> >> > which has the returned filter. The only reason I see for the new
> >> >> > function is so the coder can get back the filter string, which we
> >> >> > don't seem to use.
> >> >>
> >> >> It took me a while to see the problem, too. The point is: there is
> one
> >> >> parameter
> >> >> missing in the new API of getSaveFileName, called selectedFilter,
> >> >> which we use, and
> >> >> given that it is missing, python takes it to be the next parameter,
> >> >> which
> >> >> must be an int, and you get a TypeError. I discussed this with
> >> >> Phil Thompson (the author of PyQt4) over at the PyQt4 mailing list
> >> >> (see
> >> >>
> >> >>
> http://www.mail-archive.com/pyqt%40riverbankcomputing.com/msg23733.html)
> >> >> and he told me to use getSaveFileNameAndFilter.
> >> >>
> >> >> The other option would be to change PyQt4, dunno which is best.
> >> >>
> >> >> Greetings
> >> >>
> >> >> Martin
> >> >>
> >> >
> >> > Martin, thanks for the explanation. That made a lot more sense. I
> will
> >> > go
> >> > ahead with the patch.
> >>
> >> getSaveFileNameAndFilter was only added in pyqt-4.6.
> >
> >
> > oy! Why the heck did qt4 change their API like this?
>
> To make it more pythonic for python-3. You can set the api to v2 with
> python-2, but it is not the default.
>
> > What should we do?
>
> I think the change being discussed is only necessary when the QString
> api is set to v2. So, we should be able to do something along the
> lines of:
>
>
> import sip
>
> try:
> if sip.getapi("QString") > 1:
> # support the new api
> else:
> # support the old api
> except (AttributeError, KeyError): # call to getapi may fail with
> older versions of sip
> # support the old api
>
> > I also assume that some sort of fix should be applied to the v1.0.x?
>
> I think it should be, if the fix does not break backward compatibility
> with <PyQt4-4.6.
>
> Darren
>
>
My attempt at this can be found in pull request 33:
https://github.com/matplotlib/matplotlib/pull/33
Ben Root
From: Eric F. <ef...@ha...> - 2011年03月07日 20:59:17
On 03/07/2011 10:30 AM, Jouni K. Seppänen wrote:
>>> 5. v1.0.x doesn't merge cleanly into master
>>
>> What do you mean by this? What is the symptom?
>
> A merge conflict or (probably much less often) a test failure, because
> v1.0.x and master have diverged in the relevant part. An example is pull
> request #17, which modifies make.osx:
>
> https://github.com/matplotlib/matplotlib/pull/17
This brings up something that confuses me, together with related 
questions, and so might be another topic for this part of the docs:
1) How is it that you were able to add commits to a branch of someone 
else's fork?
2) How should it be decided who merges a pull request, and when?
3) Under what circumstances, if any, should a pull request involving 
multiple commits be collapsed into a single changeset prior to being 
merged and pushed?
Eric
>
> But make.osx has changed in master, so while merging this request will
> not have a merge conflict (at least with current v1.0.x), merging to
> master will. I created another pull request that includes this one and
> resolves the merge conflict:
>
> https://github.com/matplotlib/matplotlib/pull/30
>
> So when #17 is merged into v1.0.x, #30 should be merged into master.
>
From: Jouni K. S. <jk...@ik...> - 2011年03月07日 20:30:56
Eric Firing <ef...@ha...> writes:
>> git pull --ff-only upstream v1.0.x
>>
>> (This assumes an "upstream" remote pointing to
>> `git://github.com/matplotlib/matplotlib.git`.) Then merge your pull
>
> By default, however, if you have cloned from 
> gi...@gi...:matplotlib/matplotlib.git then instead of "upstream" the 
> remote will be "origin".
>
> Are you recommending and assuming that we clone *only* from our 
> individual github forks, and then add the "upstream" remote to point to 
> the official repo?
I was assuming that, based on the github instructions:
http://help.github.com/fork-a-repo/
But of course there are many ways to do it. We'll have to decide what we
like best and stick to it in the manual; I personally don't have any
strong opinions on what to call the various repositories. Perhaps
"origin" for the central repository and "public" for your own github
repo (as in the public counterpart of your private development repo)?
>> If everything is fine, push:
>>
>> git push gi...@gi...:matplotlib/matplotlib.git v1.0.x
>
> Can't this be simplified by using "origin" or "upstream" in place of the 
> url?
Yes, if that's the read-write address. If you cloned from the read-only
address, you can't push to it.
>> 2. the merge has conflicts
>
> I encountered that last night. The conflict was a simple one that will 
> occur often: the CHANGELOG needed to have the new entry prepended,
Oh, of course. That's going to occur a lot.
>> 5. v1.0.x doesn't merge cleanly into master
>
> What do you mean by this? What is the symptom?
A merge conflict or (probably much less often) a test failure, because
v1.0.x and master have diverged in the relevant part. An example is pull
request #17, which modifies make.osx:
https://github.com/matplotlib/matplotlib/pull/17
But make.osx has changed in master, so while merging this request will
not have a merge conflict (at least with current v1.0.x), merging to
master will. I created another pull request that includes this one and
resolves the merge conflict:
https://github.com/matplotlib/matplotlib/pull/30
So when #17 is merged into v1.0.x, #30 should be merged into master.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Darren D. <dsd...@gm...> - 2011年03月07日 20:29:16
On Mon, Mar 7, 2011 at 3:14 PM, Eric Firing <ef...@ha...> wrote:
> On 03/07/2011 09:36 AM, Jouni K. Seppänen wrote:
>> I just wrote this as a response to a question on
>> https://github.com/matplotlib/matplotlib/pull/32
>> about how to merge to v1.0.x and master.
>>
>> Please feel free to comment or ask for details.
>>
>> ------------------------------------------------------------------------------
>> First make sure your v1.0.x branch is fresh:
>>
>>   git checkout v1.0.x
>>   git pull --ff-only upstream v1.0.x
>>
>> (This assumes an "upstream" remote pointing to
>> `git://github.com/matplotlib/matplotlib.git`.) Then merge your pull
>
> By default, however, if you have cloned from
> gi...@gi...:matplotlib/matplotlib.git then instead of "upstream" the
> remote will be "origin".
>
> Are you recommending and assuming that we clone *only* from our
> individual github forks, and then add the "upstream" remote to point to
> the official repo?
No, I don't think there is such an assumption. Remotes can be named
whatever you want. I've ditched the "origin/upstream" convention for
naming remotes entirely, and instead use "matplotlib", "darrendale",
etc. I think Jouni was clear: "This assumes an "upstream" remote
pointing to ..."
>> request and run the test suite (I don't know if this should be
>> mandatory):
>>
>>   git merge bugfix/legend_windowcall # replace by whatever you are merging
>>   python setup.py install # or however you compile things to run the tests
>>   ./tests.py # all new test runner script!
>>
>> If everything is fine, push:
>>
>>   git push gi...@gi...:matplotlib/matplotlib.git v1.0.x
>
> Can't this be simplified by using "origin" or "upstream" in place of the
> url?
I think it can.
>>
>> Next do the same with master, this time merging v1.0.x:
>>
>>   git checkout master
>>   git pull --ff-only upstream master
>>   git merge v1.0.x
>>   python setup.py install
>>   ./tests.py
>>   git push gi...@gi...:matplotlib/matplotlib.git master
>> ------------------------------------------------------------------------------
>>
>> There are multiple ways things could go wrong, which will need
>> instructions in the devel docs. These are the cases I can think of:
>>
>> 1. git pull --ff-only fails because fast-forward is impossible
>>   (you have commits on an integration branch that don't belong there)
>> 2. the merge has conflicts
>
> I encountered that last night. The conflict was a simple one that will
> occur often: the CHANGELOG needed to have the new entry prepended, so as
> to be at the top of the file, above new entries that were in master but
> not in v1.0.x. Instructions for simplest case:
>
> Edit the conflicted files, remembering to remove the conflict markers;
> test as needed; use "git add" to add the resolved files (and any other
> files that needed to be changed to make the merge work) to the index, e.g.
>
>   git add CHANGELOG
>
> Then commit; a merge commit message will be generated, and can be edited
> as needed:
>
>   git commit
>
> Now you are ready to push.
>
>> 3. the tests fail (also a kind of merge conflict, assuming the tests
>>   passed before)
>> 4. the push fails because fast-forward is impossible (someone has
>>   pushed in the meantime)
>> 5. v1.0.x doesn't merge cleanly into master
>
> What do you mean by this? What is the symptom?
The master branch may have changed such that the same lines of code
have been edited in different ways along the master and v1.0.x
branches of development.
Darren
From: Darren D. <dsd...@gm...> - 2011年03月07日 20:19:58
Hi Jouni,
Thanks for doing this...
On Mon, Mar 7, 2011 at 2:36 PM, Jouni K. Seppänen <jk...@ik...> wrote:
> I just wrote this as a response to a question on
> https://github.com/matplotlib/matplotlib/pull/32
> about how to merge to v1.0.x and master.
>
> Please feel free to comment or ask for details.
>
> ------------------------------------------------------------------------------
> First make sure your v1.0.x branch is fresh:
>
>  git checkout v1.0.x
>  git pull --ff-only upstream v1.0.x
>
> (This assumes an "upstream" remote pointing to
> `git://github.com/matplotlib/matplotlib.git`.) Then merge your pull
> request and run the test suite (I don't know if this should be
> mandatory):
>
>  git merge bugfix/legend_windowcall # replace by whatever you are merging
>  python setup.py install # or however you compile things to run the tests
>  ./tests.py # all new test runner script!
>
> If everything is fine, push:
>
>  git push gi...@gi...:matplotlib/matplotlib.git v1.0.x
>
> Next do the same with master, this time merging v1.0.x:
>
>  git checkout master
>  git pull --ff-only upstream master
>  git merge v1.0.x
>  python setup.py install
>  ./tests.py
>  git push gi...@gi...:matplotlib/matplotlib.git master
We might also want to mention the special case of what needs to be
done for a change not intended for merging into master.
> ------------------------------------------------------------------------------
No comments, it's just the way I would have recommended it.
> There are multiple ways things could go wrong, which will need
> instructions in the devel docs. These are the cases I can think of:
>
> 1. git pull --ff-only fails because fast-forward is impossible
>  (you have commits on an integration branch that don't belong there)
Right, and we should emphasize that integration branches (like master
and v1.0.x) in your local repo should only ever get ahead of the
remote repo for the few moments between merging a branch and pushing
back up to the remote.
> 2. the merge has conflicts
> 3. the tests fail (also a kind of merge conflict, assuming the tests
>  passed before)
> 4. the push fails because fast-forward is impossible (someone has
>  pushed in the meantime)
> 5. v1.0.x doesn't merge cleanly into master
Nicely summarized.
Darren
From: Eric F. <ef...@ha...> - 2011年03月07日 20:14:59
On 03/07/2011 09:36 AM, Jouni K. Seppänen wrote:
> I just wrote this as a response to a question on
> https://github.com/matplotlib/matplotlib/pull/32
> about how to merge to v1.0.x and master.
>
> Please feel free to comment or ask for details.
>
> ------------------------------------------------------------------------------
> First make sure your v1.0.x branch is fresh:
>
> git checkout v1.0.x
> git pull --ff-only upstream v1.0.x
>
> (This assumes an "upstream" remote pointing to
> `git://github.com/matplotlib/matplotlib.git`.) Then merge your pull
By default, however, if you have cloned from 
gi...@gi...:matplotlib/matplotlib.git then instead of "upstream" the 
remote will be "origin".
Are you recommending and assuming that we clone *only* from our 
individual github forks, and then add the "upstream" remote to point to 
the official repo?
> request and run the test suite (I don't know if this should be
> mandatory):
>
> git merge bugfix/legend_windowcall # replace by whatever you are merging
> python setup.py install # or however you compile things to run the tests
> ./tests.py # all new test runner script!
>
> If everything is fine, push:
>
> git push gi...@gi...:matplotlib/matplotlib.git v1.0.x
Can't this be simplified by using "origin" or "upstream" in place of the 
url?
>
> Next do the same with master, this time merging v1.0.x:
>
> git checkout master
> git pull --ff-only upstream master
> git merge v1.0.x
> python setup.py install
> ./tests.py
> git push gi...@gi...:matplotlib/matplotlib.git master
> ------------------------------------------------------------------------------
>
> There are multiple ways things could go wrong, which will need
> instructions in the devel docs. These are the cases I can think of:
>
> 1. git pull --ff-only fails because fast-forward is impossible
> (you have commits on an integration branch that don't belong there)
> 2. the merge has conflicts
I encountered that last night. The conflict was a simple one that will 
occur often: the CHANGELOG needed to have the new entry prepended, so as 
to be at the top of the file, above new entries that were in master but 
not in v1.0.x. Instructions for simplest case:
Edit the conflicted files, remembering to remove the conflict markers;
test as needed; use "git add" to add the resolved files (and any other 
files that needed to be changed to make the merge work) to the index, e.g.
 git add CHANGELOG
Then commit; a merge commit message will be generated, and can be edited 
as needed:
 git commit
Now you are ready to push.
> 3. the tests fail (also a kind of merge conflict, assuming the tests
> passed before)
> 4. the push fails because fast-forward is impossible (someone has
> pushed in the meantime)
> 5. v1.0.x doesn't merge cleanly into master
What do you mean by this? What is the symptom?
Eric
From: Jouni K. S. <jk...@ik...> - 2011年03月07日 19:37:02
I just wrote this as a response to a question on
https://github.com/matplotlib/matplotlib/pull/32
about how to merge to v1.0.x and master.
Please feel free to comment or ask for details.
------------------------------------------------------------------------------
First make sure your v1.0.x branch is fresh:
 git checkout v1.0.x
 git pull --ff-only upstream v1.0.x
(This assumes an "upstream" remote pointing to
`git://github.com/matplotlib/matplotlib.git`.) Then merge your pull
request and run the test suite (I don't know if this should be
mandatory):
 git merge bugfix/legend_windowcall # replace by whatever you are merging
 python setup.py install # or however you compile things to run the tests
 ./tests.py # all new test runner script!
If everything is fine, push:
 git push gi...@gi...:matplotlib/matplotlib.git v1.0.x
Next do the same with master, this time merging v1.0.x:
 git checkout master
 git pull --ff-only upstream master
 git merge v1.0.x
 python setup.py install
 ./tests.py
 git push gi...@gi...:matplotlib/matplotlib.git master
------------------------------------------------------------------------------
There are multiple ways things could go wrong, which will need
instructions in the devel docs. These are the cases I can think of:
1. git pull --ff-only fails because fast-forward is impossible
 (you have commits on an integration branch that don't belong there)
2. the merge has conflicts
3. the tests fail (also a kind of merge conflict, assuming the tests
 passed before)
4. the push fails because fast-forward is impossible (someone has 
 pushed in the meantime)
5. v1.0.x doesn't merge cleanly into master
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Darren D. <dsd...@gm...> - 2011年03月07日 16:39:47
On Mon, Mar 7, 2011 at 11:24 AM, Benjamin Root <ben...@ou...> wrote:
>
>
> On Mon, Mar 7, 2011 at 10:20 AM, Darren Dale <dsd...@gm...> wrote:
>>
>> On Mon, Mar 7, 2011 at 11:04 AM, Benjamin Root <ben...@ou...> wrote:
>> >
>> >
>> > On Fri, Mar 4, 2011 at 4:23 AM, Martin Teichmann
>> > <lkb...@gm...>
>> > wrote:
>> >>
>> >> Hi Ben, Hi list,
>> >>
>> >> > Exactly. That's all I found too. Nothing indicates that we need to
>> >> > change anything. We are throwing away the second part of the tuple
>> >> > which has the returned filter. The only reason I see for the new
>> >> > function is so the coder can get back the filter string, which we
>> >> > don't seem to use.
>> >>
>> >> It took me a while to see the problem, too. The point is: there is one
>> >> parameter
>> >> missing in the new API of getSaveFileName, called selectedFilter,
>> >> which we use, and
>> >> given that it is missing, python takes it to be the next parameter,
>> >> which
>> >> must be an int, and you get a TypeError. I discussed this with
>> >> Phil Thompson (the author of PyQt4) over at the PyQt4 mailing list
>> >> (see
>> >>
>> >> http://www.mail-archive.com/pyqt%40riverbankcomputing.com/msg23733.html)
>> >> and he told me to use getSaveFileNameAndFilter.
>> >>
>> >> The other option would be to change PyQt4, dunno which is best.
>> >>
>> >> Greetings
>> >>
>> >> Martin
>> >>
>> >
>> > Martin, thanks for the explanation. That made a lot more sense. I will
>> > go
>> > ahead with the patch.
>>
>> getSaveFileNameAndFilter was only added in pyqt-4.6.
>
>
> oy! Why the heck did qt4 change their API like this?
To make it more pythonic for python-3. You can set the api to v2 with
python-2, but it is not the default.
> What should we do?
I think the change being discussed is only necessary when the QString
api is set to v2. So, we should be able to do something along the
lines of:
import sip
try:
 if sip.getapi("QString") > 1:
 # support the new api
 else:
 # support the old api
except (AttributeError, KeyError): # call to getapi may fail with
older versions of sip
 # support the old api
> I also assume that some sort of fix should be applied to the v1.0.x?
I think it should be, if the fix does not break backward compatibility
with <PyQt4-4.6.
Darren
From: Benjamin R. <ben...@ou...> - 2011年03月07日 16:24:43
On Mon, Mar 7, 2011 at 10:20 AM, Darren Dale <dsd...@gm...> wrote:
> On Mon, Mar 7, 2011 at 11:04 AM, Benjamin Root <ben...@ou...> wrote:
> >
> >
> > On Fri, Mar 4, 2011 at 4:23 AM, Martin Teichmann <
> lkb...@gm...>
> > wrote:
> >>
> >> Hi Ben, Hi list,
> >>
> >> > Exactly. That's all I found too. Nothing indicates that we need to
> >> > change anything. We are throwing away the second part of the tuple
> >> > which has the returned filter. The only reason I see for the new
> >> > function is so the coder can get back the filter string, which we
> >> > don't seem to use.
> >>
> >> It took me a while to see the problem, too. The point is: there is one
> >> parameter
> >> missing in the new API of getSaveFileName, called selectedFilter,
> >> which we use, and
> >> given that it is missing, python takes it to be the next parameter,
> which
> >> must be an int, and you get a TypeError. I discussed this with
> >> Phil Thompson (the author of PyQt4) over at the PyQt4 mailing list
> >> (see
> >> http://www.mail-archive.com/pyqt%40riverbankcomputing.com/msg23733.html
> )
> >> and he told me to use getSaveFileNameAndFilter.
> >>
> >> The other option would be to change PyQt4, dunno which is best.
> >>
> >> Greetings
> >>
> >> Martin
> >>
> >
> > Martin, thanks for the explanation. That made a lot more sense. I will
> go
> > ahead with the patch.
>
> getSaveFileNameAndFilter was only added in pyqt-4.6.
>
oy! Why the heck did qt4 change their API like this? What should we do? I
also assume that some sort of fix should be applied to the v1.0.x?
Ben Root
From: Darren D. <dsd...@gm...> - 2011年03月07日 16:21:00
On Mon, Mar 7, 2011 at 11:04 AM, Benjamin Root <ben...@ou...> wrote:
>
>
> On Fri, Mar 4, 2011 at 4:23 AM, Martin Teichmann <lkb...@gm...>
> wrote:
>>
>> Hi Ben, Hi list,
>>
>> > Exactly. That's all I found too. Nothing indicates that we need to
>> > change anything. We are throwing away the second part of the tuple
>> > which has the returned filter. The only reason I see for the new
>> > function is so the coder can get back the filter string, which we
>> > don't seem to use.
>>
>> It took me a while to see the problem, too. The point is: there is one
>> parameter
>> missing in the new API of getSaveFileName, called selectedFilter,
>> which we use, and
>> given that it is missing, python takes it to be the next parameter, which
>> must be an int, and you get a TypeError. I discussed this with
>> Phil Thompson (the author of PyQt4) over at the PyQt4 mailing list
>> (see
>> http://www.mail-archive.com/pyqt%40riverbankcomputing.com/msg23733.html)
>> and he told me to use getSaveFileNameAndFilter.
>>
>> The other option would be to change PyQt4, dunno which is best.
>>
>> Greetings
>>
>> Martin
>>
>
> Martin, thanks for the explanation. That made a lot more sense. I will go
> ahead with the patch.
getSaveFileNameAndFilter was only added in pyqt-4.6.
From: Benjamin R. <ben...@ou...> - 2011年03月07日 16:05:20
On Fri, Mar 4, 2011 at 4:23 AM, Martin Teichmann <lkb...@gm...>wrote:
> Hi Ben, Hi list,
>
> > Exactly. That's all I found too. Nothing indicates that we need to
> > change anything. We are throwing away the second part of the tuple
> > which has the returned filter. The only reason I see for the new
> > function is so the coder can get back the filter string, which we
> > don't seem to use.
>
> It took me a while to see the problem, too. The point is: there is one
> parameter
> missing in the new API of getSaveFileName, called selectedFilter,
> which we use, and
> given that it is missing, python takes it to be the next parameter, which
> must be an int, and you get a TypeError. I discussed this with
> Phil Thompson (the author of PyQt4) over at the PyQt4 mailing list
> (see
> http://www.mail-archive.com/pyqt%40riverbankcomputing.com/msg23733.html)
> and he told me to use getSaveFileNameAndFilter.
>
> The other option would be to change PyQt4, dunno which is best.
>
> Greetings
>
> Martin
>
>
Martin, thanks for the explanation. That made a lot more sense. I will go
ahead with the patch.
Ben Root
From: Benjamin R. <ben...@ou...> - 2011年03月07日 16:03:23
On Sun, Mar 6, 2011 at 7:18 AM, Jae-Joon Lee <lee...@gm...> wrote:
> Hi,
>
> According to the legend doc,
>
> If label is set to '_nolegend_', the item will not be shown in
> legend.
>
> But I think the documented behavior a bit ambiguous. For example,
> consider the example below.
>
> l1, = plot([1,2,3], label="_nolegend_")
> l2, = plot([2,3,1])
> legend(["my line"])
>
> I suppose the legend should show *l2* with "my line" label. But the
> current master branch shows "l1" with "my line" label.
>
> In other words, in the current implementation, when the legend command
> is called with a single nonkeyword argument (which is interpreted as a
> list of labels), the given labels are applied to all the artists
> regardless whether the artist has a label of "_nolegend_" or not.
>
> While there could be some cases that have relied on this behavior, I'm
> inclined to fix this so that artists w/ "_nolegend_" are ignored.
> However, fixing this requires "hist" command to be modified (there
> could be more commands that need modification).
>
> Unless there is no objection from other developers, I'll go ahead and
> commit the patch to fix this.
>
> Regards,
>
> -JJ
>
>
I agree, the current behavior is buggy.
Ben Root
From: Jouni K. S. <jk...@ik...> - 2011年03月07日 05:04:42
Eric Firing <ef...@ha...> writes:
> However, I have run nosetests on a build of master on Ubuntu 10.10, with 
> freetype 2.4.2, and I see the same failure that you showed on the 
> font_styles test. Same test on a build of v1.0.x, same failure. Fails 
> for png and svg; passes for pdf, but the images being compared are ugly 
> low-res bitmapped things.
The pdf comparison is designed that way: the baseline image and the test
result are rendered at test time with ghostscript without antialiasing,
and while it looks ugly it's both pretty fast and a good comparison,
since the files are rendered by exactly the same version of ghostscript
with the same settings. It's not surprising that the pdf tests pass,
since freetype is used only for finding some font information that needs
to be output into the pdf file, and all font rendering is done by the
pdf engine of the end user.
> The major change between the freetype 2.3 series and 2.4 seems to be "In 
> addition to many bugfixes, the TrueType bytecode interpreter is now 
> enabled by default. All users should upgrade."
It could be that we have inadvertently relied on bugs, or that truetype
hints cause differences that big.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks

Showing 13 results of 13

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