From 2c271e9d3818236b03123ac176534f15a2766ef2 Mon Sep 17 00:00:00 2001 From: Luke Pickering Date: Thu, 14 Nov 2019 15:09:36 -0600 Subject: [PATCH] Fixes problem in max off axis position cut --- tools/PRISMTools.js | 4 ++-- tools/plot.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/PRISMTools.js b/tools/PRISMTools.js index 307f6eb..cc41231 100644 --- a/tools/PRISMTools.js +++ b/tools/PRISMTools.js @@ -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); diff --git a/tools/plot.js b/tools/plot.js index d506011..6abcf25 100644 --- a/tools/plot.js +++ b/tools/plot.js @@ -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); }