Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Description
Documentation Link
https://matplotlib.org/devdocs/api/font_manager_api.html
Problem
The reference documentation for theFontManager
class says that there is a singleton:
This module provides a singleFontManager instance that can be shared across backends and platforms.
However, it doesn't mention that this singleton is namedfontManager
.
Suggested improvement
The docstring should clarify that the singleton is named
fontManager
, rather than implying that theFontManager
class is a singleton:This module provides a single `FontManager` instance, `fontManager`, that is shared across backends and platforms.
The
fontManager
instance should be documented as a global variable:..data::fontManager The singleton instance of:class:`FontManager`