From db4a254ecec0bc1ace5b0e427c9bdd8d09531812 Mon Sep 17 00:00:00 2001 From: Dmitry Butyugin Date: Tue, 9 Mar 2021 22:01:16 +0100 Subject: [PATCH] calibrate_shaper: Use fixed 5 Hz steps for minor ticks in the charts Signed-off-by: Dmitry Butyugin --- scripts/calibrate_shaper.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/calibrate_shaper.py b/scripts/calibrate_shaper.py index 74e34c94..bd2d4308 100755 --- a/scripts/calibrate_shaper.py +++ b/scripts/calibrate_shaper.py @@ -88,9 +88,7 @@ def plot_freq_response(lognames, calibration_data, shapers, title = "Frequency response and shapers (%s)" % (', '.join(lognames)) ax.set_title("\n".join(wrap(title, MAX_TITLE_LENGTH))) - ax.xaxis.set_minor_locator(matplotlib.ticker.AutoMinorLocator()) - ax.yaxis.set_minor_locator(matplotlib.ticker.AutoMinorLocator()) - ax.xaxis.set_minor_locator(matplotlib.ticker.AutoMinorLocator()) + ax.xaxis.set_minor_locator(matplotlib.ticker.MultipleLocator(5)) ax.yaxis.set_minor_locator(matplotlib.ticker.AutoMinorLocator()) ax.ticklabel_format(axis='y', style='scientific', scilimits=(0,0)) ax.grid(which='major', color='grey')