Buckets:
| from matplotlib.font_manager import FontProperties | |
| from matplotlib.ft2font import FT2Font | |
| from matplotlib.mathtext import MathTextParser, VectorParse | |
| from matplotlib.path import Path | |
| import numpy as np | |
| from typing import Literal | |
| class TextToPath: | |
| FONT_SCALE: float | |
| DPI: float | |
| mathtext_parser: MathTextParser[VectorParse] | |
| def __init__(self) -> None: ... | |
| def get_text_width_height_descent( | |
| self, s: str, prop: FontProperties, ismath: bool | Literal["TeX"] | |
| ) -> tuple[float, float, float]: ... | |
| def get_text_path( | |
| self, prop: FontProperties, s: str, ismath: bool | Literal["TeX"] = ... | |
| ) -> list[np.ndarray]: ... | |
| def get_glyphs_with_font( | |
| self, | |
| font: FT2Font, | |
| s: str, | |
| glyph_map: dict[str, tuple[np.ndarray, np.ndarray]] | None = ..., | |
| return_new_glyphs_only: bool = ..., | |
| ) -> tuple[ | |
| list[tuple[str, float, float, float]], | |
| dict[str, tuple[np.ndarray, np.ndarray]], | |
| list[tuple[list[tuple[float, float]], list[int]]], | |
| ]: ... | |
| def get_glyphs_mathtext( | |
| self, | |
| prop: FontProperties, | |
| s: str, | |
| glyph_map: dict[str, tuple[np.ndarray, np.ndarray]] | None = ..., | |
| return_new_glyphs_only: bool = ..., | |
| ) -> tuple[ | |
| list[tuple[str, float, float, float]], | |
| dict[str, tuple[np.ndarray, np.ndarray]], | |
| list[tuple[list[tuple[float, float]], list[int]]], | |
| ]: ... | |
| def get_glyphs_tex( | |
| self, | |
| prop: FontProperties, | |
| s: str, | |
| glyph_map: dict[str, tuple[np.ndarray, np.ndarray]] | None = ..., | |
| return_new_glyphs_only: bool = ..., | |
| ) -> tuple[ | |
| list[tuple[str, float, float, float]], | |
| dict[str, tuple[np.ndarray, np.ndarray]], | |
| list[tuple[list[tuple[float, float]], list[int]]], | |
| ]: ... | |
| text_to_path: TextToPath | |
| class TextPath(Path): | |
| def __init__( | |
| self, | |
| xy: tuple[float, float], | |
| s: str, | |
| size: float | None = ..., | |
| prop: FontProperties | None = ..., | |
| _interpolation_steps: int = ..., | |
| usetex: bool = ..., | |
| ) -> None: ... | |
| def set_size(self, size: float | None) -> None: ... | |
| def get_size(self) -> float | None: ... | |
| # These are read only... there actually are protections in the base class, so probably can be deleted... | |
| # type: ignore[misc] | |
| def vertices(self) -> np.ndarray: ... # type: ignore[override] | |
| # type: ignore[misc] | |
| def codes(self) -> np.ndarray: ... # type: ignore[override] | |
Xet Storage Details
- Size:
- 2.53 kB
- Xet hash:
- c11845beabccc21c03ba80ee3bfbdfa1a9ea679b8a037fa898dfc068d556d24d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.