1
Fork 0
This repository has been archived on 2026-08-15. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2026SEL3-project-Brittle_St.../experiments/plots/plot.py

12 lines
274 B
Python

import matplotlib.pyplot as plt
def simple_plot(x: list, y: list, show_window: bool = False, filename: str = "plot.png") -> None:
plt.plot(x, y)
plt.savefig(filename)
if show_window:
# blocks until window is closed
plt.show()
plt.close()