Skip to content

Commit

Permalink
Update PlotGen.cs
Browse files Browse the repository at this point in the history
Single decimal point in the case of `AxisType.Percent`
  • Loading branch information
erichiller authored Jan 31, 2024
1 parent 24541f7 commit 88db9b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PlotGitHubAction/PlotGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static void createPlot( string jsonString, string plotDefinitionsDir ) {
*/

Func<double, string>? tickGen = config.YAxisType switch {
AxisType.Percent => static v => $"{v:p0}",
AxisType.Percent => static v => $"{v:p1}",
AxisType.Numeric => static v => $"{v:n0}",
_ => null
};
Expand All @@ -124,8 +124,8 @@ private static void createPlot( string jsonString, string plotDefinitionsDir ) {
plt.SetAxisLimits( bottom: 0 );
Log.Debug( $"YAxis min={plt.YAxis.Min}" );
Log.Debug( $"LeftAxis min={plt.LeftAxis.Min}" );
// plt.Margins( horizontal: 0.05D, vertical: 0.0, apply: true ); // URGENT: restore?
plt.Margins( 0, 0 );
plt.Margins( horizontal: 0.05D, vertical: 0.0, apply: true ); // URGENT: restore?
// plt.Margins( 0, 0 ); // URGENT: restore?
foreach ( var axis in plt.XAxes ){
axis.FrameLineStyle.Color = new Color(0, 0, 0, 0);
}
Expand Down

0 comments on commit 88db9b6

Please sign in to comment.