# HG changeset patch # User Chris Cannam # Date 1525267544 -3600 # Node ID b6fc0970cd662de918cd972f8eecf708f316f2fe # Parent 82258db9624453da0169403c257bc9b2772d05e7 Tweaks to horizontal scale diff -r 82258db96244 -r b6fc0970cd66 layer/LogNumericalScale.cpp --- a/layer/LogNumericalScale.cpp Tue May 01 16:32:35 2018 +0100 +++ b/layer/LogNumericalScale.cpp Wed May 02 14:25:44 2018 +0100 @@ -101,7 +101,7 @@ cerr << "f0 = " << f0 << " at x " << (x0 ? x0 : 1) << endl; cerr << "f1 = " << f1 << " at x " << x1 << endl; - int n = 10; + int n = 20; auto ticks = ScaleTickIntervals::logarithmic({ f0, f1, n }); n = int(ticks.size()); diff -r 82258db96244 -r b6fc0970cd66 layer/SpectrumLayer.cpp --- a/layer/SpectrumLayer.cpp Tue May 01 16:32:35 2018 +0100 +++ b/layer/SpectrumLayer.cpp Wed May 02 14:25:44 2018 +0100 @@ -686,7 +686,7 @@ LogNumericalScale().paintHorizontal (v, this, paint, - QRect(int(getXForBin(v, 0)), h - scaleh, w + xorigin, scaleh)); + QRect(int(getXForBin(v, 1)), h - scaleh, w + xorigin, scaleh)); paint.restore(); }