-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Doc: document textpath module #12676
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
Doc: document textpath module #12676
Conversation
flake8 says
|
lib/matplotlib/textpath.py
Outdated
The text to be converted. | ||
|
||
usetex : bool | ||
If True, use matplotlib usetex mode. |
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.
Do we have a link or a description what "matplotlib usetex mode" is?
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.
Good question. I now replaced it with
Whether to use tex rendering. Defaults to
False
.
same as further down in TextPath
.
lib/matplotlib/textpath.py
Outdated
*ismath* | ||
If True, use mathtext parser. Effective only if usetex == False. | ||
ismath : bool | ||
If True, use mathtext parser. Effective only if usetex == False. |
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.
if *usetex* is False.
or if ``usetex == False``.
lib/matplotlib/textpath.py
Outdated
---------- | ||
|
||
xy : tuple or array of two float values | ||
Position of the text. For no offset, use ``xy=(0,0)``. |
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.
xy=(0, 0)
(space before comma)
lib/matplotlib/textpath.py
Outdated
|
||
*usetex* | ||
If True, use matplotlib usetex mode. | ||
s : string |
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.
numpydoc uses str
as type
lib/matplotlib/textpath.py
Outdated
xy : tuple or array of two float values | ||
Position of the text. For no offset, use ``xy=(0,0)``. | ||
|
||
s : string |
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.
str
81583be
to
9670bf9
Compare
9670bf9
to
e9101f0
Compare
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.
Thanks!
|
||
Returns | ||
------- | ||
|
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.
FYI, you don't need blank lines after the headers.
PR Summary
The
matplotlib.textpath
module had not been available in the documentation. This PR adds it to the list of modules and improves its docstrings.PR Checklist