2021-12-22 20:00:55 +00:00
|
|
|
#! /usr/bin/env python3
|
|
|
|
|
|
|
|
import pandas as pd
|
|
|
|
from matplotlib import pyplot as plt
|
2021-12-26 14:42:41 +00:00
|
|
|
from sys import argv
|
2021-12-22 20:00:55 +00:00
|
|
|
|
|
|
|
plt.rcParams["figure.autolayout"] = True
|
2021-12-26 14:42:41 +00:00
|
|
|
df = pd.read_csv(argv[1])
|
2021-12-22 20:00:55 +00:00
|
|
|
print("Contents in csv file:\n", df)
|
2022-05-25 10:31:33 +00:00
|
|
|
plt.plot(df.index, df.Sample, label="Sample")
|
|
|
|
plt.plot(df.index, df.Convolution / 10, label="Conv")
|
|
|
|
plt.plot(df.index, df.Threshold / 10, label="Conv. Th+")
|
|
|
|
plt.plot(df.index, df.Threshold * -1 / 10, label="Conv. Th-")
|
|
|
|
plt.plot(df.index, df.Index, label="Index")
|
|
|
|
plt.plot(df.index, df.Max, label="Qnt. avg. +")
|
|
|
|
plt.plot(df.index, df.Min, label="Qnt. avg. -")
|
|
|
|
plt.plot(df.index, df.Symbol * 10, label="Symbol")
|
|
|
|
plt.plot(df.index, df.I, label="I")
|
|
|
|
plt.plot(df.index, df.Flags * 100, label="Flags")
|
|
|
|
plt.grid(True)
|
|
|
|
plt.legend(loc="upper left")
|
|
|
|
plt.suptitle(argv[1])
|
2021-12-22 20:00:55 +00:00
|
|
|
plt.show()
|