...
fn plotArray(inout self, *data: Float32, lineType:Int32=0, lineColor:Int32=7, title:String="Plot") raises:
with open("m1v1tf01_temp.dat", "w") as f:
var string: String = ""
for dat in data:
string += FloatToString(dat) + ",\n"
f.write(string)
self.gnuplot_gateway.callGNUPlotCommand("plot \"m1v1tf01_temp.dat\" title " + title + " lt " + IntToString(lineType) + " lc " + IntToString(lineColor)) # <<< Ugly strings
...
...
fn plotArray(inout self, *data: Float32, lineType:Int32=0, lineColor:Int32=7, title:String="Plot") raises:
with open("m1v1tf01_temp.dat", "w") as f:
var string: String = ""
for dat in data:
string += FloatToString(dat) + ",\n"
f.write(string)
self.gnuplot_gateway.callGNUPlotCommand("plot \"m1v1tf01_temp.dat\" title " + title + " lt " + IntToString(lineType) + " lc " + IntToString(lineColor)) # <<< Ugly strings
...