Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Doc]: text alignment defaults #27345

Closed
Milestone
@jsalsman

Description

@jsalsman

Documentation Link

https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.text.html

Problem

  • It would be fantastic if the default texthorizontalalignment (left) andverticalalignment (baseline) were documented inmatplotlib.pyplot.text.html please.
  • For reference, the defaults are not set inrcParams, but in theText class atlib/matplotlib/text.py here:
def __init__(self,             ...             verticalalignment='baseline',             horizontalalignment='left',             ...             ):

There are a few other similar excerpts intext.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 "horizontalalignment orha"
    • change: {'left', 'center', 'right'}
    • to: {'left', 'center', 'right'}, default: left
  • alongside "verticalalignment orva"
    • change: {'bottom', 'baseline', 'center', 'center_baseline', 'top'}
    • to: {'bottom', 'baseline', 'center', 'center_baseline', 'top'}, default: baseline

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp