From 7ac7555d2a5e8d80d9961899ba47cb8fd6be1ccb Mon Sep 17 00:00:00 2001 From: Trygve Date: Sun, 29 Oct 2023 23:58:36 +0100 Subject: [PATCH] =?UTF-8?q?Starta=20p=C3=A5=20oppgave=205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smitte_plot.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 smitte_plot.py diff --git a/smitte_plot.py b/smitte_plot.py new file mode 100644 index 0000000..128bbb4 --- /dev/null +++ b/smitte_plot.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +"""Created on 29.10""" +__author__ = "Trygve B. Nomeland" +__email__ = "trygve.borte.nomeland@nmbu.no" + +import numpy +import matplotlib.pyplot as plot +def main(): + with open('pan.csv', 'r') as f: + data = numpy.array([[float(y) for y in x.split(',')[1:]] for x in f.readlines()[1:]]) + fig, ax = plot.subplots() + ax.plot(range(len(data)), data) + plot.show() + +if __name__ == '__main__': + main() \ No newline at end of file