Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
sitemap: false
---

// error bar, working: e.g x1 = 2, x1 = 0 , 0 and 2 build the error boundaries
var trace1 = {
x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1],
y: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0],
Expand All @@ -17,6 +18,8 @@
showlegend: false,
type: "scatter"
};

// error bar, working: e.g x1 = 5.5, x1 = 4.5 , 4.5 and 5.5 build the error boundaries
var trace2 = {
x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1],
y: [5.5, 3, 5.5, 8, 6, 3, 8, 5, 6, 5.5, 4.75, 5, 4, 7, 2, 4, 7, 4.4, 2, 4.5],
Expand All @@ -27,16 +30,20 @@
showlegend: false,
type: "scatter"
};

// error bar, working: e.g x1 = 11, x1 = 9 , 9 and 11 build the error boundaries
var trace3 = {
x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1],
y: [11, 9, 7, 5, 3, 1, 3, 5, 3, 1, -1, 1, 3, 1, -0.5, 1, 3, 5, 7, 9],
fill: "tozerox",
fillcolor: "rgba(231,107,243,0.2)",
line: {color: "transparent"},
name: "Fair",
name: "Ideal",
showlegend: false,
type: "scatter"
};

// trace4, trace5 and trace6 represent the lines (or measurements)
var trace4 = {
x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
y: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
Expand Down Expand Up @@ -85,4 +92,4 @@
zeroline: false
}
};
Plotly.newPlot('myDiv', data, layout);
Plotly.newPlot('myDiv', data, layout);