chore(main.py): deleted redundant main.py, feat(plot.py): added plot file to group all visualization related code for the experiments
This commit is contained in:
parent
97eaa5c06b
commit
ba59361f97
3 changed files with 15 additions and 10 deletions
11
experiments/plots/plot.py
Normal file
11
experiments/plots/plot.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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:
|
||||
plt.show()
|
||||
|
||||
plt.close()
|
||||
Reference in a new issue