You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be fantastic if the default text horizontalalignment (left) and verticalalignment (baseline) were documented in matplotlib.pyplot.text.html please.
For reference, the defaults are not set in rcParams, but in the Text class at lib/matplotlib/text.py here:
The text is aligned relative to the anchor point (*x*, *y*) according
to ``horizontalalignment`` (default: 'left') and ``verticalalignment``
(default: 'bottom'). See also
* Show and correct default alignment parameters in text.py
For issue [Doc]: text alignment defaults #27345
* Update text.py: line too long
* Show defaults in text_alignment.py
* Make setter method defaults match new docstrings in text.py
See #27346 (review)
* IDL text alignment set_ method defaults for text.pyi
* revert interface defaults in text.pyi
* revert defaults in alignment set_ methods text.py
did change the order of allowed arguments for set_verticalalignment per @StefRe
* Document text alignment defaults in _axes.py
Because this is where the header at https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.text.html comes from.
* rm trailing whitespace in _axes.py
Uh oh!
There was an error while loading. Please reload this page.
Documentation Link
https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.text.html
Problem
horizontalalignment
(left
) andverticalalignment
(baseline
) were documented inmatplotlib.pyplot.text.html
please.rcParams
, but in theText
class atlib/matplotlib/text.py
here: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
horizontalalignment
orha
"verticalalignment
orva
"The text was updated successfully, but these errors were encountered: