comparison layer/LogNumericalScale.cpp @ 1278:b6fc0970cd66 horizontal-scale

Tweaks to horizontal scale
author Chris Cannam
date Wed, 02 May 2018 14:25:44 +0100
parents 82258db96244
children fc9d9f1103fa
comparison
equal deleted inserted replaced
1277:82258db96244 1278:b6fc0970cd66
99 double f1 = p->getFrequencyForX(v, x1); 99 double f1 = p->getFrequencyForX(v, x1);
100 100
101 cerr << "f0 = " << f0 << " at x " << (x0 ? x0 : 1) << endl; 101 cerr << "f0 = " << f0 << " at x " << (x0 ? x0 : 1) << endl;
102 cerr << "f1 = " << f1 << " at x " << x1 << endl; 102 cerr << "f1 = " << f1 << " at x " << x1 << endl;
103 103
104 int n = 10; 104 int n = 20;
105 auto ticks = ScaleTickIntervals::logarithmic({ f0, f1, n }); 105 auto ticks = ScaleTickIntervals::logarithmic({ f0, f1, n });
106 n = int(ticks.size()); 106 n = int(ticks.size());
107 107
108 int marginx = -1; 108 int marginx = -1;
109 109