Skip to content

Commit

Permalink
Attempt to display up to 10 decades of ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
macaba committed Aug 21, 2024
1 parent 28f02af commit 3417fec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/NSD.UI/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,18 @@ private void CommonChartConfig()
LabelFormatter = logTickLabels,
MinorTickGenerator = new LogMinorTickGenerator() { Divisions = 10 },
IntegerTicksOnly = true,
TargetTickCount = 10
};
NumericAutomatic yTickGenerator = new()
{
LabelFormatter = logTickLabels,
MinorTickGenerator = new LogMinorTickGenerator() { Divisions = 10 },
IntegerTicksOnly = true,
TargetTickCount = 10
};
WpfPlot1.Plot.Axes.Bottom.TickGenerator = xTickGenerator;
WpfPlot1.Plot.Axes.Left.TickGenerator = yTickGenerator;
WpfPlot1.Plot.Axes.Hairline(true);
WpfPlot1.Plot.XLabel("Frequency (Hz)", 18);
WpfPlot1.Plot.YLabel("Noise (nV/rHz)", 18);
WpfPlot1.Plot.Axes.Bottom.Label.Bold = false;
Expand Down

0 comments on commit 3417fec

Please sign in to comment.