Add plotting code
This commit is contained in:
parent
bee447b334
commit
196b3f7576
17
plot.py
Normal file
17
plot.py
Normal file
@ -0,0 +1,17 @@
|
||||
from pathlib import Path
|
||||
|
||||
import fire
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from wsgi import create_fig
|
||||
|
||||
|
||||
def main(folder: str = "plots"):
|
||||
fig, _df, _df_state, timestamp = create_fig()
|
||||
timestamp = timestamp.replace(" ", "_")
|
||||
timestamp = timestamp.replace(":", "-")
|
||||
fig.savefig(Path(folder) / f"digital_plot_{timestamp}.png", dpi=300)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
fire.Fire(main)
|
||||
Loading…
x
Reference in New Issue
Block a user