-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Documentation of TextArea's fontprops keyword argument is misleading #12121
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
Labels
Milestone
Comments
There are two options:
@galenlynch Any interest in making that change an submitting a pull request? |
Actually, 1. is the way to go. The argument is correctly called |
Sure, glad to make a PR with option 1. |
galenlynch
added a commit
to galenlynch/matplotlib
that referenced
this issue
Oct 7, 2018
As described in matplotlib#12121, the current documentation of `textprops` keyword parameter strongly, and erroneously, suggests that `textprops` should be a FontProperties object. In reality, it should instead be a dictionary of keyword parameters that will be passed to the `Text` object inside of `TextArea`. This commit changes the documentation to reflect the current behavior. closes matplotlib#12121
6 tasks
galenlynch
added a commit
to galenlynch/matplotlib
that referenced
this issue
Oct 7, 2018
As described in matplotlib#12121, the current documentation of `textprops` keyword parameter strongly, and erroneously, suggests that `textprops` should be a FontProperties object. In reality, it should instead be a dictionary of keyword parameters that will be passed to the `Text` object inside of `TextArea`. This commit changes the documentation to reflect the current behavior. closes matplotlib#12121
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation for
TextArea
strongly suggests that the keyword argumentfontprops
should be aFontProperties
object. However, inspecting the source code suggests thatfontprops
should instead be a dictionary of keyword arguments that will be passed to theText
object insideTextArea
.I propose rewording the documentation to make it clear that
fontprops
should be a dictionary of keyword arguments.The text was updated successfully, but these errors were encountered: