Ejemplo n.º 1
0
 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.");
 }
Ejemplo n.º 2
0
 public LeftLinearAxis(PlotControl parent)
 {
     Position      = AxisPosition.Left;
     ParentControl = parent;
     IsZoomEnabled = true;
 }
Ejemplo n.º 3
0
 public BottomLinearAxis(PlotControl parent)
 {
     Position      = AxisPosition.Bottom;
     ParentControl = parent;
     IsZoomEnabled = false;
 }