Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Set sticky_edges correctly for negative height bar(). #7995
Conversation
tacaswell
added this to the
2.1 (next point release)
milestone
Jan 31, 2017
|
As we have some very clever users, I am concerned that this will catch someone. |
|
What exactly do you want in the API notes? "The rectangles patches returned by |
|
@anntzer Yes |
|
done |
tacaswell
modified the milestone: 2.0.1 (next bug fix release), 2.1 (next point release)
Feb 16, 2017
tacaswell
added the
Release critical
label
Feb 16, 2017
|
Changed my mind, this should be fixed for 2.0.1 . I can be talked back to targetting this for 2.1 with out too much effort. |
NelleV
self-assigned this
Feb 16, 2017
|
If we can convince you to target 2.1, maybe it shouldn't be tagged release critical? |
NelleV
changed the title from
Set sticky_edges correctly for negative height bar(). to [MRG+1] Set sticky_edges correctly for negative height bar().
Feb 17, 2017
|
oh wow… I am tired enough that I thought @anntzer had added that test and not remove it… I'll stop reviewing for tonight… |
NelleV
dismissed
their
review
Feb 17, 2017
lack of caffein in my system is making me approve pull request that remove tests and add none…
NelleV
changed the title from
[MRG+1] Set sticky_edges correctly for negative height bar(). to Set sticky_edges correctly for negative height bar().
Feb 17, 2017
|
Darn I nearly got it past @NelleV :-) I decided to remove the test because the implementation of |
|
So you are saying that the old test still passes, but you don't consider it useful? |
|
No. The old test made sure that negative widths led to a Rectangle with a positive width and a shifted x value. With this PR, we just build a Rectangle with the original x and original (negative) width, so the test doesn't really make sense anymore. |
|
The test should be changed to check that the rectangles are still where they are expected to be (effectively 'right' aligned) unless we have some other test that verifies the behavior of rectangles with negative height / width. |
|
Added one. |
NelleV
merged commit 349d6f0
into matplotlib:master
Feb 22, 2017
5 checks passed
|
Thanks @anntzer |
anntzer
deleted the
anntzer:negative-height-bar branch
Feb 22, 2017
QuLogic
added a commit
that referenced
this pull request
Feb 22, 2017
|
|
QuLogic |
200c455
|
ibnIrshad
added a commit
to ibnIrshad/matplotlib
that referenced
this pull request
Mar 18, 2017
|
|
ibnIrshad |
76e3693
|
anntzer commentedJan 30, 2017
The patch correctly sets the sticky edge to 0 instead of -1 for
bar(0, height=-1).Noticed the issue the plots in #7994 (comment).