8000 [Doc]: Clarify text positioning · Issue #21571 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Doc]: Clarify text positioning #21571
Closed
@timhoffm

Description

@timhoffm

Problem

We're not quite specific in the docs what text position and alignment mean.

https://matplotlib.org/devdocs/api/text_api.html#matplotlib.text.Text
https://matplotlib.org/devdocs/api/text_api.html#matplotlib.text.Text.set_horizontalalignment
https://matplotlib.org/devdocs/api/text_api.html#matplotlib.text.Text.set_verticalalignment

Suggested improvement

  • Describe the anchor point concept in Text docstring.
    Maybe even have a plot that illustrates it.
  • set_horizontal/verticalalignment should state "align relative to the anchor point.

Matplotlib Version

mian

Matplotlib documentation version

main

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0