Addresses issue #5704. Makes usage of parameters clearer#5709
Addresses issue #5704. Makes usage of parameters clearer#5709tacaswell merged 5 commits intomatplotlib:masterfrom
Conversation
|
@tacaswell please have a look. |
|
It looks like there are some pep8 issues: Can you please wrap those lines to <80 characters? |
lib/matplotlib/axes/_axes.py
Outdated
There was a problem hiding this comment.
This does not default to 'data'.
I would add something to the body of this parameter like 'see xycoords to control what coordinate system this value is interpreted in' and something similar for xytext.
There was a problem hiding this comment.
Oh sorry I'll remove the default value for xy. Yes what you said makes it much clearer but then I think I'll have to use the next line. Is it fine if I do so? Ideally I don't really want to do that though...
There was a problem hiding this comment.
Use as many lines as you need.
Not everything can be documented in about half a tweet
On Tue, Dec 22, 2015, 01:34 Devashish Deshpande notifications@github.com
wrote:
In lib/matplotlib/axes/_axes.py
#5709 (comment):@@ -632,22 +632,21 @@ def annotate(self, _args, *_kwargs):
s : string
label
xy : (x, y)position of element to annotatexy : (x, y) , default: "data"Oh sorry I'll remove the default value for xy. Yes what you said makes it
much clearer but then I think I'll have to use the next line. Is it fine if
I do so? Ideally I don't really want to do that though...—
Reply to this email directly or view it on GitHub
https://github.com/matplotlib/matplotlib/pull/5709/files#r48225539.
|
@tacaswell I'm not able to understand why it's failing now.... |
|
Restarted, That particular failure is checking relative speeds, but the tests run on VMs without any performance guarantees so it intermittently fails (see that one maybe once or twice a week). |
|
Oh alright thanks! |
DOC: clarify annotation parameter usage #5704
|
Thanks! Contributions to documentation are as or more important as code contributions. 👍 |
DOC: clarify annotation parameter usage #5704
|
backported to 1.5.x as 82b29ae |
|
Will surely keep that in mind :-) |
Just added a few lines to make the dependence of the different parameters clearer.