if(xy.kind == 2) { VectorXY& h = data.Create<VectorXY>(x, y); SplineEquation& e = spline.Add(); e.Fit(h); scatter.AddSeries(e).NoMark().NoSeriesLegend().ExplicitRange(Min(x), Max(x)); } else scatter.AddSeries(x, y); if(xy.title.GetCount() && xy.kind != 2) scatter.Legend(xy.title); if(xy.kind) scatter.Stroke(DPI(2), xy.color); else scatter.NoPlot(); if(xy.point) { if(xy.kind == 2) scatter.AddSeries(x, y).NoPlot().Legend(xy.title).LegendLine().Stroke(DPI(2), xy.color); scatter.MarkWidth(DPI(12)).MarkColor(xy.point_color); switch(xy.point) { case 1: scatter.MarkStyle<RhombMarkPlot>(); break; case 2: scatter.MarkStyle<CircleMarkPlot>(); break; case 3: scatter.MarkStyle<SquareMarkPlot>(); break; case 4: scatter.MarkStyle<TriangleMarkPlot>(); break; } } else scatter.NoMark();
Report message to a moderator