public ECGPlot(string plotTitle)
{
CurrentPlot = new PlotModel();
CurrentPlot.Title = plotTitle;
//CurrentPlot.LegendTitle = "Legend";
CurrentPlot.LegendOrientation = LegendOrientation.Horizontal;
CurrentPlot.LegendPlacement = LegendPlacement.Outside;
CurrentPlot.LegendPosition = LegendPosition.RightMiddle;
_windowSize = 1000;
_beginingPoint = 0;
first = true;
//CurrentPlot.LegendBackground = OxyColor.FromAColor(200, OxyColors.White);
//CurrentPlot.LegendBorder = OxyColors.Black;
}