#!/usr/bin/python3

# brezvezno risanje popravka

import numpy as np
import matplotlib.pyplot as plt

sum = np.loadtxt("5mhz-polinom-2048tock.csv", delimiter=',')
print(sum)

f = sum[:,0]
a = sum[:,1]
print(f[4:9])
print(a[4:9])
popravek = np.max(a[4:-1])-a[4:-1]
plt.plot(f[4:-1],popravek)
plt.show()
