<gh_stars>0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import matplotlib.pyplot as plt
import argparse
import numpy as np

ap = argparse.ArgumentParser()
ap.add_argument('file', type=str, help='name of the data file')
args = ap.parse_args()

x, y = np.loadtxt(args.file, delimiter=',', unpack=True)
plt.plot(x, y, label='Loaded from ' + args.file)
plt.xlabel('Time')
plt.ylabel('Value')
plt.title('Gini Index')
plt.show()


#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import matplotlib.pyplot as plt
import argparse
import numpy as np

ap = argparse.ArgumentParser()
ap.add_argument('file', type=str, help='name of the data file')
args = ap.parse_args()

x, y = np.loadtxt(args.file, delimiter=',', unpack=True)
plt.plot(x, y, label='Loaded from ' + args.file)
plt.xlabel('Time')
plt.ylabel('Value')
plt.title('Gini Index')
plt.show()
#!/usr/bin/env python3 # -*- coding: utf-8 -*-