|
695 | 695 | y1 = this.AxisToSvg("y", box.fY1, false), |
696 | 696 | y2 = this.AxisToSvg("y", box.fY2, false); |
697 | 697 |
|
698 | | - // if box filled, contor line drawn only with "L" draw option: |
| 698 | + // if box filled, contour line drawn only with "L" draw option: |
699 | 699 | if ((fillatt.color != 'none') && !this.draw_line) lineatt.color = "none"; |
700 | 700 |
|
701 | 701 | this.draw_g |
|
1416 | 1416 | if (!this.nostack) |
1417 | 1417 | this.nostack = ! this.BuildStack(); |
1418 | 1418 |
|
1419 | | - // if any histogram appears with precalculated errors, use E for all histograms |
| 1419 | + // if any histogram appears with pre-calculated errors, use E for all histograms |
1420 | 1420 | if (!this.nostack && this.haserrors && !d.check("HIST")) opt+= " E"; |
1421 | 1421 |
|
1422 | 1422 | // order used to display histograms in stack direct - true, reverse - false |
|
1869 | 1869 | // first and last bins |
1870 | 1870 | switch (drawbins.length) { |
1871 | 1871 | case 0: break; |
1872 | | - case 1: drawbins[0].width = w/4; break; // patalogic case of single bin |
| 1872 | + case 1: drawbins[0].width = w/4; break; // pathologic case of single bin |
1873 | 1873 | case 2: drawbins[0].width = drawbins[1].width = (drawbins[1].grx1-drawbins[0].grx1)/2; break; |
1874 | 1874 | default: |
1875 | 1875 | drawbins[0].width = drawbins[1].width; |
|
1941 | 1941 |
|
1942 | 1942 | this.error_size = lw; |
1943 | 1943 |
|
1944 | | - lw = Math.floor((this.lineatt.width-1)/2); // one shoud take into account half of end-cup line width |
| 1944 | + lw = Math.floor((this.lineatt.width-1)/2); // one should take into account half of end-cup line width |
1945 | 1945 | nodes.filter(function(d) { return (d.exlow > 0) || (d.exhigh > 0) || (d.eylow > 0) || (d.eyhigh > 0); }) |
1946 | 1946 | .append("svg:path") |
1947 | 1947 | .call(this.lineatt.func) |
|
2070 | 2070 |
|
2071 | 2071 | if (best.exact) res.exact = true; |
2072 | 2072 | res.menu = res.exact; // activate menu only when exactly locate bin |
2073 | | - res.menu_dist = 3; // distance alwyas fixed |
| 2073 | + res.menu_dist = 3; // distance always fixed |
2074 | 2074 |
|
2075 | 2075 | if (ttrect.empty()) |
2076 | 2076 | ttrect = this.draw_g.append("svg:rect") |
|
2178 | 2178 | res.changed = ttbin.property("current_bin") !== bestbin; |
2179 | 2179 |
|
2180 | 2180 | if (res.changed) { |
2181 | | - ttbin.selectAll("*").remove(); // first delete all childs |
| 2181 | + ttbin.selectAll("*").remove(); // first delete all children |
2182 | 2182 | ttbin.property("current_bin", bestbin); |
2183 | 2183 |
|
2184 | 2184 | if (ismark) { |
|
2773 | 2773 | } |
2774 | 2774 |
|
2775 | 2775 | function startRectSel() { |
2776 | | - // ignore when touch selection is actiavated |
| 2776 | + // ignore when touch selection is activated |
2777 | 2777 | if (doing_zoom) return; |
2778 | 2778 | doing_zoom = true; |
2779 | 2779 |
|
|
3627 | 3627 | var histo = this.GetObject(), |
3628 | 3628 | kMAXCONTOUR = 404, |
3629 | 3629 | kMAXCOUNT = 400, |
3630 | | - // arguemnts used in he PaintContourLine |
| 3630 | + // arguments used in he PaintContourLine |
3631 | 3631 | xarr = new Float32Array(2*kMAXCONTOUR), |
3632 | 3632 | yarr = new Float32Array(2*kMAXCONTOUR), |
3633 | 3633 | itarr = new Int32Array(2*kMAXCONTOUR), |
|
4148 | 4148 | if ((absz === 0) || (absz < absmin)) continue; |
4149 | 4149 |
|
4150 | 4150 | zdiff = uselogz ? ((absz>0) ? Math.log(absz) - logmin : 0) : (absz - absmin); |
4151 | | - // area of the box should be propotional to absolute bin content |
| 4151 | + // area of the box should be proportional to absolute bin content |
4152 | 4152 | zdiff = 0.5 * ((zdiff < 0) ? 1 : (1 - Math.sqrt(zdiff * xyfactor))); |
4153 | 4153 | // avoid oversized bins |
4154 | 4154 | if (zdiff < 0) zdiff = 0; |
|
4227 | 4227 | pmain = this.main_painter(), // used for axis values conversions |
4228 | 4228 | i, j, y, sum0, sum1, sum2, cont, center, counter, integral, w, pnt; |
4229 | 4229 |
|
4230 | | - // candle option coded into string, which comes after candle indentifier |
| 4230 | + // candle option coded into string, which comes after candle identifier |
4231 | 4231 | // console.log('Draw candle plot with option', this.options.Candle); |
4232 | 4232 |
|
4233 | 4233 | var bars = "", markers = ""; |
|
4259 | 4259 | if (counter/integral < 0.001 && (counter + cont)/integral >=0.001) pnt.whiskerm = this.GetBinY(j + 0.5); // Lower whisker |
4260 | 4260 | if (counter/integral < 0.25 && (counter + cont)/integral >=0.25) pnt.m25y = this.GetBinY(j + 0.5); // Lower edge of box |
4261 | 4261 | if (counter/integral < 0.5 && (counter + cont)/integral >=0.5) pnt.median = this.GetBinY(j + 0.5); //Median |
4262 | | - if (counter/integral < 0.75 && (counter + cont)/integral >=0.75) pnt.p25y = this.GetBinY(j + 0.5); //Uppeder edge of box |
| 4262 | + if (counter/integral < 0.75 && (counter + cont)/integral >=0.75) pnt.p25y = this.GetBinY(j + 0.5); //Upper edge of box |
4263 | 4263 | if (counter/integral < 0.999 && (counter + cont)/integral >=0.999) pnt.whiskerp = this.GetBinY(j + 0.5); // Upper whisker |
4264 | 4264 | counter += cont; |
4265 | 4265 | y = this.GetBinY(j + 0.5); // center of y bin coordinate |
|
4272 | 4272 |
|
4273 | 4273 | // console.log('Whisker before ' + pnt.whiskerm + '/' + pnt.whiskerp); |
4274 | 4274 |
|
4275 | | - //Whsikers cannot exceed 1.5*iqr from box |
| 4275 | + //Whiskers cannot exceed 1.5*iqr from box |
4276 | 4276 | if ((pnt.m25y-1.5*pnt.iqr) > pnt.whsikerm) { |
4277 | 4277 | pnt.whiskerm = pnt.m25y-1.5*pnt.iqr; |
4278 | 4278 | } |
|
4617 | 4617 | ttrect = this.draw_g.select(".tooltip_bin"); |
4618 | 4618 |
|
4619 | 4619 | if (h.poly) { |
4620 | | - // process toolltips from TH2Poly |
| 4620 | + // process tooltips from TH2Poly |
4621 | 4621 |
|
4622 | 4622 | var pmain = this.main_painter(), |
4623 | 4623 | realx, realy, foundindx = -1; |
|
0 commit comments