Skip to content

Commit

Permalink
update PlotGen.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
erichiller committed Feb 12, 2024
1 parent a0e6ed6 commit 54212f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PlotGitHubAction/PlotGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 54212f4

Please sign in to comment.