Skip to content

Commit

Permalink
Merge pull request #390 from hashmapinc/tempus-385
Browse files Browse the repository at this point in the history
Plotly Trajectory Viewer Improvements
  • Loading branch information
randypitcherii committed May 24, 2018
2 parents cfedce7 + faa4228 commit bf35894
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ export function plot(xArray, yArray) {
l: 40, //left margin
r: 40, //right margin
b: 40 //bottom margin
},
yaxis: {
autorange: "reversed",
scaleanchor: "x"
}
};

Expand Down Expand Up @@ -232,7 +236,7 @@ export function init(widgetContext) {
var xArray = [], yArray = [];
xy.forEach(point => {
xArray.push(point.x);
yArray.push(point.y);
yArray.push(-point.y); // this is a THREE.js thing that causes TVD to be negative. Will remove when THREE is gone
});

//plot the coordinates
Expand Down
10 changes: 7 additions & 3 deletions ui/src/app/widget/lib/trajectory-viewer/trajectory-viewer3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@ export function plot(xArray, yArray, zArray) {
b: 40 //bottom margin
},
scene: {
aspectmode: 'data',
xaxis: {
title: 'East'
title: 'East',
nticks: 4
},
yaxis: {
title: 'North'
title: 'North',
nticks: 4
},
zaxis: {
title: 'TVD'
title: 'TVD',
autorange: "reversed"
}
}
};
Expand Down

0 comments on commit bf35894

Please sign in to comment.