mirror of
https://github.com/OpenRTX/OpenRTX
synced 2026-08-08 12:29:06 -04:00
This change removes the old copyright header from project sources and replaces it with a new simplified SPDX-compliant header. Note that files that were missing the header but reasonably understood to be licensed according to the root license were not corrected. Signed-off-by: Ryan Turner <ryan@turnrye.com>
26 lines
995 B
Python
Executable file
26 lines
995 B
Python
Executable file
#! /usr/bin/env python3
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: Copyright 2020-2026 OpenRTX Contributors
|
|
|
|
import pandas as pd
|
|
from matplotlib import pyplot as plt
|
|
from sys import argv
|
|
|
|
plt.rcParams["figure.autolayout"] = True
|
|
df = pd.read_csv(argv[1])
|
|
print("Contents in csv file:\n", df)
|
|
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])
|
|
plt.show()
|