-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[WIP] DOC Updated documentation of arrow function to numpy docs format. #7029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
62bcf04
ac0f466
b6c49e4
5ed7809
a008555
ee5953a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4522,13 +4522,35 @@ def arrow(self, x, y, dx, dy, **kwargs): | |
""" | ||
Add an arrow to the axes. | ||
|
||
Call signature:: | ||
|
||
arrow(x, y, dx, dy, **kwargs) | ||
|
||
Draws arrow on specified axis from (*x*, *y*) to (*x* + *dx*, | ||
*y* + *dy*). Uses FancyArrow patch to construct the arrow. | ||
|
||
Draws arrow on specified axis from (`x`, `y`) to (`x` + `dx`, | ||
`y` + `dy`). Uses FancyArrow patch to construct the arrow. | ||
|
||
Parameters | ||
---------- | ||
x : float | ||
X-coordinate of the arrow base | ||
y : float | ||
Y-coordinate of the arrow base | ||
dx : float | ||
Length of arrow in x-coordinate | ||
dy : float | ||
Length of arrow in y-coordinate | ||
|
||
Return | ||
------ | ||
a : FancyArrow | ||
patches.FancyArrow object | ||
|
||
Other Parameters | ||
----------------- | ||
kwargs : `~matplotlib.patches.FancyArrow` properties. | ||
|
||
See also | ||
-------- | ||
%(FancyArrow)s : Parent object type. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is correct. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is rendered properly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (So there is no need to change anything in this PR) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So what you mean is that ": Parent object type." should be removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's only part of it. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not put anything after |
||
|
||
Notes | ||
----- | ||
The resulting arrow is affected by the axes aspect ratio and limits. | ||
This may produce an arrow whose head is not square with its stem. To | ||
create an arrow whose head is square with its stem, use | ||
|
@@ -4537,11 +4559,8 @@ def arrow(self, x, y, dx, dy, **kwargs): | |
ax.annotate("", xy=(0.5, 0.5), xytext=(0, 0), | ||
arrowprops=dict(arrowstyle="->")) | ||
|
||
Optional kwargs control the arrow construction and properties: | ||
|
||
%(FancyArrow)s | ||
|
||
**Example:** | ||
Examples | ||
-------- | ||
|
||
.. plot:: mpl_examples/pylab_examples/arrow_demo.py | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please add a blank line after this? I am not entirely sure why, but python3.5 is unhappy… There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I wasn't clear: I meant after the ".. plot::" directive. |
||
""" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out this line messes the sphinx rendering. Do you replacing this line as: