diff options
author | Dmitry Butyugin <dmbutyugin@google.com> | 2021-03-09 22:01:16 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2021-03-20 13:24:43 -0400 |
commit | db4a254ecec0bc1ace5b0e427c9bdd8d09531812 (patch) | |
tree | 4e72155fc46284f38e54dbdb2b39b78cacfba341 | |
parent | 73a39370ad98dad866d80ee0e67808f4ca137875 (diff) | |
download | kutter-db4a254ecec0bc1ace5b0e427c9bdd8d09531812.tar.gz kutter-db4a254ecec0bc1ace5b0e427c9bdd8d09531812.tar.xz kutter-db4a254ecec0bc1ace5b0e427c9bdd8d09531812.zip |
calibrate_shaper: Use fixed 5 Hz steps for minor ticks in the charts
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
-rwxr-xr-x | scripts/calibrate_shaper.py | 4 |
1 files changed, 1 insertions, 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') |