Unofficial type stubs for the matplotlib package, enabling type checking and autocompletion. Current version 0.3.11, released on 2024-01-21. Development is active but with infrequent releases.
pip install matplotlib-stubsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic plot usage that benefits from the stubs.
Use `# type: ignore` or contribute missing stubs.
Keep both packages updated and verify functionality.
Do not import matplotlib-stubs; just use regular matplotlib imports. The stubs are automatically used by type checkers.
Update to latest version of both matplotlib and matplotlib-stubs, or use a workaround like `from matplotlib import pyplot as plt`.