ssapy_toolkit.Plots.figpath
- ssapy_toolkit.Plots.figpath(filename)[source]
Build a path under yu_figures that respects requested subfolders.
- Rules:
The path is always rooted under ~/yu_figures (fallback: ./yu_figures).
Subfolders in filename are preserved and created as needed.
The basename is used exactly as given (no automatic extension added).
Absolute paths and ‘..’ are normalized to stay under yu_figures.
Examples
figpath(“plot”) -> ~/yu_figures/plot figpath(“tests/burn_to_dv”) -> ~/yu_figures/tests/burn_to_dv figpath(“tests/burn_to_dv.png”) -> ~/yu_figures/tests/burn_to_dv.png figpath(“/abs/path/ignored/name.svg”) -> ~/yu_figures/name.svg figpath(“weird/name.foo”) -> ~/yu_figures/weird/name.foo