private byte[] CreatePlotWith(string filename, Collection <Value> values) { var title = "Height (cm)"; var plotData = new PlotDataFactory().ValuesTo(values, title); IFileService fileService = new ScottPlotService(new PngFileName(filename), plotData); var plotService = new FileReaderService(fileService); return(plotService.CreateFile()); }
public override bool OnEnterSetup() { if (FileReaderService == null) { return(false); } if (FileReaderService.LastCreatedFile == null) { FileReaderService.CreateFile(); } FileReaderService.LastCreatedFile.Add(Line); return(true); }