Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Doc]: fontweight options not documented correctly #31506

@kyleaoman

Description

@kyleaoman

Documentation Link

https://matplotlib.org/devdocs/users/explain/text/text_props.html

Problem

The list of options for font weights in the narrative documentation seems to be out of date, for example the option "ultrabold" raises ValueError: weight='ultrabold' is invalid.

Suggested improvement

The up-to-date list of options is given in the API docs: https://matplotlib.org/stable/api/text_api.html#matplotlib.text.Text.set_fontweight, the narrative documentation should be changed to agree.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions