(base: str, name: str)
| 43 | |
| 44 | |
| 45 | def get_plot_path(base: str, name: str) -> str: |
| 46 | root, ext = os.path.splitext(base) |
| 47 | if not ext: |
| 48 | ext = ".png" |
| 49 | output = os.path.join(root, name + ext) |
| 50 | os.makedirs(os.path.dirname(output), exist_ok=True) |
| 51 | return output |
| 52 | |
| 53 | |
| 54 | def deploy_plot(title: str, output: str, background: str, tight: bool = True) -> None: |
no outgoing calls
no test coverage detected