public static string PlotDataFile(string dataFileName) { if (!String.IsNullOrWhiteSpace(dataFileName)) { string id = PlotControl.OpenPlotShell(); Shell s = Shell.GetShell(id); if (s != null) { PlotControl p = s.MainControl as PlotControl; if (p != null) { DataCache d = new DataCache(dataFileName); string header = ""; d.LoadFromFile(dataFileName, out header); p.NumPointsPerPlot = d.AbsoluteCount; p.SetCache(d); return(id); } s.Close(); return("Error: unable to open plot control."); } return("Error: unable to open plot shell."); } return("Error: bad file name."); }
public LeftLinearAxis(PlotControl parent) { Position = AxisPosition.Left; ParentControl = parent; IsZoomEnabled = true; }
public BottomLinearAxis(PlotControl parent) { Position = AxisPosition.Bottom; ParentControl = parent; IsZoomEnabled = false; }