Starta på oppgave 5

This commit is contained in:
Trygve 2023-10-29 23:58:36 +01:00
parent 62633fa9fb
commit 7ac7555d2a
1 changed files with 16 additions and 0 deletions

16
smitte_plot.py Normal file
View File

@ -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()