Source code for tud_lbm.io.plotting.figure_config
"""Centralized figure styling shared by every plot operator in this package."""
from __future__ import annotations
from dataclasses import dataclass
from dataclasses import field
@dataclass(frozen=True)
[docs]
class FigureStyle:
"""Tunable styling knobs for all figures produced by ``io.plotting``."""
[docs]
colors: dict[str, str] = field(
default_factory=lambda: {
"max_velocity": "tab:blue",
"density_ratio": "tab:orange",
"avg_density": "tab:green",
"total_mass": "tab:olive",
"contact_angle_left": "tab:purple",
"contact_angle_right": "tab:red",
"contact_line_speed_left": "tab:brown",
"contact_line_speed_right": "tab:pink",
}
)