| #!/usr/bin/env python3 | |
| """Supplementary figure: exact constructed no-crossing-horizon example.""" | |
| from __future__ import annotations | |
| import matplotlib.pyplot as plt | |
| from scale_figure_parts import draw_no_crossing_example, load_and_calculate | |
| from style import FULL_WIDTH_IN, HERE, save_figure | |
| OUTPUT = HERE / "fig_no_crossing_example.pdf" | |
| def main() -> None: | |
| values = load_and_calculate() | |
| fig, ax = plt.subplots(figsize=(FULL_WIDTH_IN, 2.35)) | |
| fig.subplots_adjust(left=0.085, right=0.985, bottom=0.21, top=0.965) | |
| draw_no_crossing_example(ax, values) | |
| save_figure( | |
| fig, | |
| OUTPUT, | |
| subject="Constructed nine-hour local no-crossing-horizon example", | |
| ) | |
| if __name__ == "__main__": | |
| main() | |