From f14957ec659ebdb2d6bfa2b1378956880ed6477d Mon Sep 17 00:00:00 2001 From: janis Date: Mon, 23 May 2022 13:56:08 +0200 Subject: [PATCH] added plot generator to project --- plot_generator/plot_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plot_generator/plot_generator.py b/plot_generator/plot_generator.py index b2e1986..543e84a 100644 --- a/plot_generator/plot_generator.py +++ b/plot_generator/plot_generator.py @@ -1,12 +1,12 @@ """This Program is CLI only!""" import matplotlib.pyplot as plt -import numpy as np import csv import os path = input("Path to csv-file to be plotted: ") date = input("Date & time at which the measurement was taken (approx.): ") +group = input("Group-name: ") saveit = input("Should the graph be saved? (y/n) ").lower() imp = open(path, "r") @@ -41,7 +41,7 @@ if saveit == "y": except FileExistsError: pass plt.savefig(save_path) - os.rename(f"{save_path}/.png", f"{save_path}/GC-{date}.png") + os.rename(f"{save_path}/.png", f"{save_path}/GC-{date}-{group}.png") print(f"saved images to {save_path}") else: print("didn't save images")