void ScaleDraw::setScale(const ScaleDiv &s) { d_scldiv = s; setDblRange(d_scldiv.lBound(),d_scldiv.hBound(),d_scldiv.logScale()); }
DiMap::DiMap(int i1, int i2, double d1, double d2, bool logarithmic) { d_log = logarithmic; setIntRange(i1,i2); setDblRange(d1, d2); }
//------------------------------------------------------------ // //.F ScaleDraw::setScale (1) // Adjust the range of the scale // //.u Syntax //.f void ScaleDraw::setScale(double x1, double x2, double step, int logscale) // //.u Parameters //.p double x1 -- value at the left/low endpoint of the scale // double x2 -- value at the right/high endpoint of the scale // double step -- step size (default : 0.0) // int logscale -- logarithmic scale (default : 0) // //.u Description // If step == 0.0, the step width is calculated automatically // dependent on the maximal number of scale ticks. // //------------------------------------------------------------ void ScaleDraw::setScale(double x1, double x2, int maxMajIntv, int maxMinIntv, double step, int logscale) { d_scldiv.rebuild( x1, x2, maxMajIntv, maxMinIntv, logscale, step, false ); setDblRange( d_scldiv.lBound(), d_scldiv.hBound(), d_scldiv.logScale()); }