10 lines = file_content.strip().
split(
'\n')
14 if line.strip().startswith(
"join"):
17 print(
"saving plot "+title)
18 new_x =
range(len(x_values))
19 new_x = [i/(len(x_values)-1)
for i
in new_x]
20 plt.plot(x_values,y_values,
"o-")
21 plt.plot(new_x,y_values,
"o-")
23 plt.savefig(title+
".png",format=
"png")
28 if line.strip().startswith(
"title"):
29 title = line.split(
'"')[1]
31 title = file_name+
"_dim"+title[1]
39 if len(values) == 2
and all(
is_float(v)
for v
in values):
41 x_values.append(
float(values[0]))
42 y_values.append(
float(values[1]))