calibrate_shaper: Use fixed 5 Hz steps for minor ticks in the charts
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
parent
73a39370ad
commit
db4a254ece
|
@ -88,9 +88,7 @@ def plot_freq_response(lognames, calibration_data, shapers,
|
||||||
|
|
||||||
title = "Frequency response and shapers (%s)" % (', '.join(lognames))
|
title = "Frequency response and shapers (%s)" % (', '.join(lognames))
|
||||||
ax.set_title("\n".join(wrap(title, MAX_TITLE_LENGTH)))
|
ax.set_title("\n".join(wrap(title, MAX_TITLE_LENGTH)))
|
||||||
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.xaxis.set_minor_locator(matplotlib.ticker.AutoMinorLocator())
|
|
||||||
ax.yaxis.set_minor_locator(matplotlib.ticker.AutoMinorLocator())
|
ax.yaxis.set_minor_locator(matplotlib.ticker.AutoMinorLocator())
|
||||||
ax.ticklabel_format(axis='y', style='scientific', scilimits=(0,0))
|
ax.ticklabel_format(axis='y', style='scientific', scilimits=(0,0))
|
||||||
ax.grid(which='major', color='grey')
|
ax.grid(which='major', color='grey')
|
||||||
|
|
Loading…
Reference in New Issue