From 3417fec6cf0916af69a22b955630ece1add3a4ea Mon Sep 17 00:00:00 2001 From: macaba <1031306+macaba@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:36:33 +0100 Subject: [PATCH] Attempt to display up to 10 decades of ticks --- source/NSD.UI/MainWindow.axaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/NSD.UI/MainWindow.axaml.cs b/source/NSD.UI/MainWindow.axaml.cs index bcb9ce6..ae9b540 100644 --- a/source/NSD.UI/MainWindow.axaml.cs +++ b/source/NSD.UI/MainWindow.axaml.cs @@ -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;