Mercurial > hg > svgui
changeset 1278:b6fc0970cd66 horizontal-scale
Tweaks to horizontal scale
author | Chris Cannam |
---|---|
date | Wed, 02 May 2018 14:25:44 +0100 |
parents | 82258db96244 |
children | 34394e8c2942 |
files | layer/LogNumericalScale.cpp layer/SpectrumLayer.cpp |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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());
--- 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(); }