-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Milestone
Description
Documentation Link
https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.text.html
Problem
- It would be fantastic if the default text
horizontalalignment(left) andverticalalignment(baseline) were documented inmatplotlib.pyplot.text.htmlplease. - For reference, the defaults are not set in
rcParams, but in theTextclass atlib/matplotlib/text.pyhere:
def __init__(self,
...
verticalalignment='baseline',
horizontalalignment='left',
...
):
There are a few other similar excerpts in text.py for resetting defaults, etc.
Sorry I'm not skilled enough to do a PR myself. [Got it, I believe: #27346] Thank you for your kind consideration of this request.
Suggested improvement
- alongside "
horizontalalignmentorha"- change: {'left', 'center', 'right'}
- to: {'left', 'center', 'right'}, default: left
- alongside "
verticalalignmentorva"- change: {'bottom', 'baseline', 'center', 'center_baseline', 'top'}
- to: {'bottom', 'baseline', 'center', 'center_baseline', 'top'}, default: baseline