Title: [Doc]: text alignment defaults · Issue #27345 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: text alignment defaults · Issue #27345 · matplotlib/matplotlib
X Title: [Doc]: text alignment defaults · Issue #27345 · matplotlib/matplotlib
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) and verticalalignment (baseline) were documented in matplotlib.pyplot....
Open Graph 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) and verticalalignment (baselin...
X 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) and verticalalignment (baselin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27345
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: text alignment defaults","articleBody":"### Documentation Link\r\n\r\nhttps://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.text.html\r\n\r\n### Problem\r\n\r\n* It would be fantastic if the default text ``horizontalalignment`` (``left``) and ``verticalalignment`` (``baseline``) were documented in ``matplotlib.pyplot.text.html`` please.\r\n* For reference, the defaults are not set in ``rcParams``, but in the ``Text`` class at ``lib/matplotlib/text.py`` here:\r\n```\r\ndef __init__(self,\r\n ...\r\n verticalalignment='baseline',\r\n horizontalalignment='left',\r\n ...\r\n ):\r\n```\r\nThere are a few other similar excerpts in ``text.py`` for resetting defaults, etc.\r\n\r\n~~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.\r\n\r\n### Suggested improvement\r\n\r\n* alongside \"``horizontalalignment`` or ``ha``\" \r\n - change: {'left', 'center', 'right'}\r\n - to: {'left', 'center', 'right'}, default: left\r\n* alongside \"``verticalalignment`` or ``va``\" \r\n - change: {'bottom', 'baseline', 'center', 'center_baseline', 'top'}\r\n - to: {'bottom', 'baseline', 'center', 'center_baseline', 'top'}, default: baseline\r\n\r\n","author":{"url":"https://github.com/jsalsman","@type":"Person","name":"jsalsman"},"datePublished":"2023-11-19T09:55:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/27345/matplotlib/issues/27345"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ec0d972e-30c3-183e-1fc0-abda9d1a5096 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD8E:B9479:48EE9C:6911CF:6A50F9F8 |
| html-safe-nonce | 89ba4e91d0c50f7d47c37d36eaa5ab9021b66e6162e11232b87b536b0e7a13ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDhFOkI5NDc5OjQ4RUU5Qzo2OTExQ0Y6NkE1MEY5RjgiLCJ2aXNpdG9yX2lkIjoiNDM4NjAyMjIxNTA3MTYyNzc2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ddeb515fc4c5af833c71d955342b52d8d6631f048dbc9a26cbfd1ef24a06b125 |
| hovercard-subject-tag | issue:2000779321 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/27345/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ff4f66c8fe285d6ba35dbacac1be97c49d08a8a006f24328992fcc823a76674/matplotlib/matplotlib/issues/27345 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ff4f66c8fe285d6ba35dbacac1be97c49d08a8a006f24328992fcc823a76674/matplotlib/matplotlib/issues/27345 |
| og:image:alt | Documentation Link https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.text.html Problem It would be fantastic if the default text horizontalalignment (left) and verticalalignment (baselin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jsalsman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8d836581d020676cc0ef4a83cd2fe17e4af02c3d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width