protected void GenerateHistogramGraphicFiles(DirectoryInfo analysisFolder, Histogram rawHisto, Histogram thrHisto, int fChartWidth, int fChartHeight) { DirectoryInfo figuresFolder = Project.DoDBase.FiguresFolderPath(analysisFolder); figuresFolder.Create(); FileInfo areaHistPath = new FileInfo(Path.Combine(figuresFolder.FullName, "Histogram_Area.png")); FileInfo volhistPath = new FileInfo(Path.Combine(figuresFolder.FullName, "Histogram_Volume.png")); DoDHistogramViewer ExportHistogramViewer = new DoDHistogramViewer(rawHisto, thrHisto, Project.ProjectManager.Project.Units); ExportHistogramViewer.ExportCharts(areaHistPath, volhistPath, fChartWidth, fChartHeight); }
public void LoadHistograms(GCDConsoleLib.Histogram rawHistogram, GCDConsoleLib.Histogram thrHistogram) { if (HistogramViewer == null) { HistogramViewer = new DoDHistogramViewer(rawHistogram, thrHistogram, ProjectManager.Project.Units, chtData); } else { HistogramViewer.UpdateHistograms(rawHistogram, thrHistogram, rdoArea.Checked); } HistogramViewer.SetFont(Properties.Settings.Default.ChartFont); }