Skip to content

Commit

Permalink
Fixes problem in max off axis position cut
Browse files Browse the repository at this point in the history
  • Loading branch information
luketpickering committed Nov 14, 2019
1 parent 6240de8 commit 2c271e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/PRISMTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class flux_matcher {
}

let upbin_oa = bigmat.n;
let oamax_bin = target.FindBin(this.oa_bins, oamax);
let oamax_bin = hist1D.FindBin(this.oa_bins, oamax);
if (oamax_bin < (this.oa_bins.length - 1)) {
upbin_oa = oamax_bin + 1;
}

// console.log("ERange: ", emin, emax, "Bin range: ", lowbin, upbin, "max oa bin: ", oamax_bin, upbin_oa);
console.log("ERange: ", emin, emax, "Bin range: ", lowbin, upbin, "max oa bin: ", oamax_bin, upbin_oa);

// console.log("Before slice: ", bigmat, targetvec);

Expand Down
2 changes: 1 addition & 1 deletion tools/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class plotAxes {
RenderLatexLabel(
this.svg.append("text").text(
y_axis.label),
this.svg, "30ex", "10ex", -275, -65, 1, 1, -90);
this.svg, "32ex", "10ex", -275, -65, 1, 1, -90);
}


Expand Down

0 comments on commit 2c271e9

Please sign in to comment.