Skip to content

Commit

Permalink
Adds DayaBay2016 constraint, tweaks probability plot x axis tick freq…
Browse files Browse the repository at this point in the history
…uency
  • Loading branch information
luketpickering committed Apr 8, 2019
1 parent aab4a98 commit 6bdde09
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions OscProbConstraints.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ class ConstraintPlot {
this.lineGen =
d3.line()
.x(function(d) { return xScale(d[0] * xAxis.exp_scale); })
.y(function(d) { return yScale(d[1] * yAxis.exp_scale); })
.curve(d3.curveNatural);
.y(function(d) { return yScale(d[1] * yAxis.exp_scale); });
// .curve(d3.curveNatural);

this.svg = d3.select(ele)
.append("svg")
Expand Down Expand Up @@ -481,6 +481,12 @@ function GetConstraintData() {
"constraint_line constraint_outer T2KConstraint",
"<div>Expt: T2K</div><div>Year: 2018</div><div>Ref: PRL 121 171802</div>");

ConstraintData.AddConstraint(
"DB2018_68", "S2Th13", "dcp", [[0.0219832638913, 0.0198958446337,0.0198958446337,0.0219832638913,0.0219832638913]],
[[-Math.PI,-Math.PI,Math.PI,Math.PI,-Math.PI]],
"constraint_line constraint_inner DBConstraint",
"<div>Expt: Daya Bay</div><div>Year: 2016</div><div>Ref: PRD 93, 072011 (2016)</div>");

return ConstraintData.GetConstraintData();
}

Expand Down
2 changes: 1 addition & 1 deletion OscProbPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class OscProbPlot {
this.svg.append("g")
.attr("class", "x_axis biglabel")
.attr("transform", "translate(0," + this.height + ")")
.call(d3.axisBottom(xScale).tickArguments([ 5 ]));
.call(d3.axisBottom(xScale).tickArguments([ 8 ]));

RenderLatexLabel(this.svg.append("text").text("\\(E_{\\nu} \\textrm{(GeV)}\\)"),
this.svg, "25ex", "10ex", this.width*0.4,this.height*0.72, 1.5, 1.5);
Expand Down
3 changes: 3 additions & 0 deletions osc.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
.T2KConstraint {
stroke: red;
}
.DBConstraint {
stroke: orange;
}

div.tooltip {
position: absolute;
Expand Down

0 comments on commit 6bdde09

Please sign in to comment.