From 54212f40ea32e2d53f1393b617019569de82cbe0 Mon Sep 17 00:00:00 2001 From: Eric Hiller Date: Mon, 12 Feb 2024 11:31:59 -0600 Subject: [PATCH] update PlotGen.cs --- src/PlotGitHubAction/PlotGen.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PlotGitHubAction/PlotGen.cs b/src/PlotGitHubAction/PlotGen.cs index 8587006..e29d32c 100644 --- a/src/PlotGitHubAction/PlotGen.cs +++ b/src/PlotGitHubAction/PlotGen.cs @@ -109,6 +109,7 @@ private static void createPlot( string jsonString, string plotDefinitionsDir ) { if ( config.YAxisType switch { AxisType.Percent => new ScottPlot.TickGenerators.NumericAutomatic { LabelFormatter = static v => $"{v:p1}" }, // AxisType.Numeric => new ScottPlot.TickGenerators.NumericFixedInterval { Interval = 1 }, + // https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5/TickGenerators/NumericAutomatic.cs AxisType.Numeric => new ScottPlot.TickGenerators.NumericAutomatic { IntegerTicksOnly = true }, _ => ( ITickGenerator? )null } is { } tickGenerator ) {