Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Don't force anncoords to fig coords upon dragging. #6892
Conversation
mdboom
added the
needs_review
label
Aug 3, 2016
tacaswell
commented on the diff
Aug 4, 2016
| def update_offset(self, dx, dy): | ||
| ann = self.annotation | ||
| - ann.xyann = self.ox + dx, self.oy + dy | ||
| - x, y = ann.xyann | ||
| - | ||
| - def finalize_offset(self): |
tacaswell
Owner
|
tacaswell
added this to the
2.1 (next point release)
milestone
Aug 4, 2016
|
|
tacaswell
modified the milestone: 2.0.1 (next bug fix release), 2.1 (next point release)
Aug 4, 2016
tacaswell
merged commit 0e1c687
into matplotlib:master
Aug 4, 2016
tacaswell
removed the
needs_review
label
Aug 4, 2016
tacaswell
modified the milestone: 2.1 (next point release), 2.0.1 (next bug fix release)
Aug 4, 2016
tacaswell
added a commit
that referenced
this pull request
Aug 4, 2016
|
|
tacaswell |
06feaf6
|
|
backported to v2.x as 06feaf6 (you can tell I was on the fence about this my the re-re-re-(..) milestoning. |
Then why is it 2.0.1 and not 2.0 when it's already backported? |
|
Without really discussing it with anyone I have been using 2.0 -> blocking 2.0.1 -> can be backported, but not blocking. |
anntzer
deleted the
anntzer:keep-draggable-annotation-anncoords branch
Aug 4, 2016
|
OK, but that makes things confusing when 2.0.0 is released and stuff on the 2.0.1 milestone needs to be backported. Unless nothing is really supposed to be on the 2.0.1 milestone without a backport? Also, I've been moving this to 2.0 anyway, so maybe that distinction has been lost a bit already... |
|
Everything on the 2.0.1 milestone needs to land on the 2.x branch either via direct merge to 2.x or backport otherwise it can't go into 2.0.1 The only difference as I see it is that 2.0.1 stuff does not need to land before we release 2.0.0 |
|
Yes, of course, but the question is, when it's already on 2.x, should it be tagged 2.0.1? |
anntzer commentedAug 3, 2016
See #6783.
Minimal example:
Panning the axes shows that the annotation uses offset coordinates: it moves
"with" the point it points to. However, (before this patch is applied,) after
dragging the annotation somewhere else, it switches to figure coordinates: when
panning the axes, the text box stops physically moving; instead it's the arrow
that moves to follow the point.
The fix actually makes the code simpler...