|
| 1 | +__all__ = [ |
| 2 | + "__bibtex__", |
| 3 | + "__version_info__", |
| 4 | + "set_loglevel", |
| 5 | + "ExecutableNotFoundError", |
| 6 | + "get_configdir", |
| 7 | + "get_cachedir", |
| 8 | + "get_data_path", |
| 9 | + "matplotlib_fname", |
| 10 | + "RcParams", |
| 11 | + "rc_params", |
| 12 | + "rc_params_from_file", |
| 13 | + "rcParamsDefault", |
| 14 | + "rcParams", |
| 15 | + "rcParamsOrig", |
| 16 | + "defaultParams", |
| 17 | + "rc", |
| 18 | + "rcdefaults", |
| 19 | + "rc_file_defaults", |
| 20 | + "rc_file", |
| 21 | + "rc_context", |
| 22 | + "use", |
| 23 | + "get_backend", |
| 24 | + "interactive", |
| 25 | + "is_interactive", |
| 26 | + "default_test_modules", |
| 27 | + "colormaps", |
| 28 | + "color_sequences", |
| 29 | +] |
| 30 | + |
| 31 | + |
| 32 | +import os |
| 33 | +from pathlib import Path |
| 34 | + |
| 35 | +from . import cbook, rcsetup |
| 36 | +from collections.abc import Generator, MutableMapping |
| 37 | +import contextlib |
| 38 | +from packaging.version import Version |
| 39 | + |
| 40 | +from matplotlib._api import MatplotlibDeprecationWarning |
| 41 | +from matplotlib.cbook import sanitize_sequence |
| 42 | +from matplotlib.rcsetup import cycler, validate_backend |
| 43 | +from typing import Any, Callable, NamedTuple |
| 44 | + |
| 45 | +__bibtex__: str |
| 46 | + |
| 47 | +class _VersionInfo(NamedTuple): |
| 48 | + major: int |
| 49 | + minor: int |
| 50 | + micro: int |
| 51 | + releaselevel: str |
| 52 | + serial: int |
| 53 | + |
| 54 | +class __getattr__: |
| 55 | + __version_info__: _VersionInfo |
| 56 | + |
| 57 | +def set_loglevel(level: str) -> None: ... |
| 58 | + |
| 59 | +class _ExecInfo(NamedTuple): |
| 60 | + executable: str |
| 61 | + raw_version: str |
| 62 | + version: Version |
| 63 | + |
| 64 | +class ExecutableNotFoundError(FileNotFoundError): ... |
| 65 | + |
| 66 | +def _get_executable_info(name: str) -> _ExecInfo: ... |
| 67 | + |
| 68 | +def get_configdir() -> str: ... |
| 69 | +def get_cachedir() -> str: ... |
| 70 | +def get_data_path() -> str: ... |
| 71 | +def matplotlib_fname() -> str: ... |
| 72 | + |
| 73 | +class RcParams(dict[str, Any]): |
| 74 | + validate: dict[str, Callable] |
| 75 | + def __init__(self, *args, **kwargs) -> None: ... |
| 76 | + def __setitem__(self, key: str, val: Any) -> None: ... |
| 77 | + def __getitem__(self, key: str) -> Any: ... |
| 78 | + def __iter__(self) -> Generator[str, None, None]: ... |
| 79 | + def __len__(self) -> int: ... |
| 80 | + def find_all(self, pattern: str): ... |
| 81 | + def copy(self) -> RcParams: ... |
| 82 | + |
| 83 | +def rc_params(fail_on_error: bool = ...) -> RcParams: ... |
| 84 | +def rc_params_from_file(fname: str | Path | os.PathLike, fail_on_error: bool = ..., use_default_template: bool = ...) -> RcParams: ... |
| 85 | + |
| 86 | +rcParamsDefault: RcParams |
| 87 | +rcParams: RcParams |
| 88 | +rcParamsOrig: RcParams |
| 89 | +defaultParams: dict[str, Any] |
| 90 | + |
| 91 | +def rc(group: str, **kwargs) -> None: ... |
| 92 | +def rcdefaults() -> None: ... |
| 93 | +def rc_file_defaults() -> None: ... |
| 94 | +def rc_file(fname: str | Path | os.PathLike, *, use_default_template: bool = ...) -> None: ... |
| 95 | + |
| 96 | +@contextlib.contextmanager |
| 97 | +def rc_context(rc: dict[str, Any] | None = ..., fname: str | Path | os.PathLike | None = ...): ... |
| 98 | + |
| 99 | +def use(backend: str, *, force: bool = ...) -> None: ... |
| 100 | +def get_backend() -> str: ... |
| 101 | +def interactive(b: bool) -> None: ... |
| 102 | +def is_interactive() -> bool: ... |
| 103 | + |
| 104 | +default_test_modules: list[str] |
| 105 | + |
| 106 | +def _preprocess_data(func: Callable | None = ..., *, replace_names: list[str] | None = ..., label_namer: str | None = ...) -> Callable: ... |
| 107 | + |
| 108 | +from matplotlib.cm import _colormaps as colormaps |
| 109 | +from matplotlib.colors import _color_sequences as color_sequences |
| 110 | + |
0 commit comments