Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 25cb0859 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

added graph writer to coach driver strategy tests, added target speed in graph

parent e1c790dc
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,7 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
......
......@@ -39,8 +39,17 @@ namespace TUGraz.VectoCore.Tests.Utils
var values = string.Format("{0}|{1}|{2}|{3}", string.Join(",", x), string.Join(",", y), string.Join(",", x2),
string.Join(",", y2));
values = values.Replace("NaN", "0");
if (yfield == ModalResultField.v_act) {
var y3 =
modDataV3.Rows.Cast<DataRow>()
.Select(v => v.Field<string>(ModalResultField.v_targ.GetName()))
.Select(v => string.IsNullOrWhiteSpace(v) ? "0" : v);
values += string.Format("|{0}|{1}", string.Join(",", x), string.Join(",", y3));
}
values = values.Replace("NaN", "0");
var maxX = (int)Math.Ceiling(Math.Max(x.ToDouble().Max(), x2.ToDouble().Max()));
images.Add(CreateGraphStream(xfield.GetCaption(), yfield.GetCaption(), maxX, values));
}
......@@ -63,7 +72,7 @@ namespace TUGraz.VectoCore.Tests.Utils
{ "chxt", "x,x,y,y" },
{ "chds", "a" },
{ "chxr", string.Format("0,0,{0},{1}", xAxisRange, xAxisRange / 10) },
{ "chco", "0000FF,FF0000" },
{ "chco", "0000FF,FF0000,00FF00" },
{ "chg", "5,10" },
{ "chxl", string.Format("1:|{0}|3:|{1}", xLabel, yLabel) },
{ "chxp", "1,0|3,0" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment