From 355c75e49f2a481f044d2a1d720dafa7edfb76d4 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Tue, 20 Jun 2023 19:45:57 +0300 Subject: [PATCH] lab6: add supplementary files to improve functionality --- labs/6/Makefile | 5 +++++ labs/6/plotter.py | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 labs/6/Makefile create mode 100644 labs/6/plotter.py diff --git a/labs/6/Makefile b/labs/6/Makefile new file mode 100644 index 0000000..e3238f6 --- /dev/null +++ b/labs/6/Makefile @@ -0,0 +1,5 @@ +build: + javac *.java + +clean: + rm *.class diff --git a/labs/6/plotter.py b/labs/6/plotter.py new file mode 100644 index 0000000..ad44289 --- /dev/null +++ b/labs/6/plotter.py @@ -0,0 +1,15 @@ +import matplotlib.pyplot as plt + +data = [] + +while True: + try: + data.append(list(map(float, input().split()))) + except: + break + +#print(list(zip(*data))) + +for i in list(zip(*data)): + plt.plot(i) +plt.show()