1 import matplotlib.pyplot
as plt
4 marker_style = dict(linestyle=
'', color=
'0.8', markersize=10, mfc=
"C0", mec=
"C0")
7 data = np.genfromtxt(
"data.txt", delimiter=
',', dtype=
None)
8 features = np.genfromtxt(
"res.txt", delimiter=
',', dtype=
None)
10 fig, ax = plt.subplots()
11 ax.plot(range(0, len(data)), data)
13 ax.plot(features, data[features], marker=
'.', **marker_style)
15 ax.set(xlabel=
'data index', ylabel=
'data value')
18 fig.savefig(
"MatplotlibVisRes.png")