← Về thư mục
skills/scientific-visualization/scripts/style_presets.py
- _load_palette_asset · function · L143-L152 — def _load_palette_asset() -> ModuleType
- available_palettes · function · L155-L159 — def available_palettes() -> dict[str, list[str]]
- get_style · function · L162-L183 — def get_style( style_name: str = "default", *, palette_name: str = "okabe_ito_on_white", ) -> dict[str, Any]
- _matplotlib_style · function · L186-L200 — def _matplotlib_style(style: dict[str, Any]) -> dict[str, Any]
- apply_publication_style · function · L203-L228 — def apply_publication_style( style_name: str = "default", *, palette_name: str = "okabe_ito_on_white", reset: bool = False, ) -> dict[str, Any]
- style_context · function · L232-L251 — def style_context( style_name: str = "default", *, palette_name: str = "okabe_ito_on_white", ) -> Iterator[dict[str, Any]]
- set_color_palette · function · L254-L271 — def set_color_palette(palette_name: str = "okabe_ito_on_white") -> list[str]
- load_publisher_profiles · function · L274-L283 — def load_publisher_profiles() -> dict[str, Any]
- figure_size_for_profile · function · L286-L310 — def figure_size_for_profile( publisher: str, width: str, *, aspect: float = 0.75, ) -> tuple[float, float]
- math_is_finite_positive · function · L313-L314 — def math_is_finite_positive(value: float) -> bool
- configure_for_journal · function · L317-L366 — def configure_for_journal( journal: str, figure_width: str = "single", *, aspect: float = 0.75, palette_name: str = "okabe_ito_on_white", ) -> dict[str, Any]
- _mplstyle_value · function · L369-L374 — def _mplstyle_value(key: str, value: Any) -> str
- create_style_template · function · L377-L403 — def create_style_template( output_file: str | Path, *, style_name: str = "default", palette_name: str = "okabe_ito_on_white", force: bool = False, ) -> Path
- reset_to_default · function · L406-L412 — def reset_to_default() -> None
- _serializable_style · function · L415-L428 — def _serializable_style(style_name: str, palette_name: str) -> dict[str, Any]
- build_parser · function · L431-L453 — def build_parser() -> argparse.ArgumentParser
- main · function · L456-L497 — def main(argv: list[str] | None = None) -> int