Skip to content

Commit b41eb7c

Browse files
authored
Merge pull request #235 from Caltech-IPAC/DM-7967-sort-magnitude-reversed
DM-7967: reverse axis for magnitude
2 parents 4d8a642 + 71fdb5c commit b41eb7c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/firefly/js/templates/lightcurve/LcPhaseFoldingPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ function doPhaseFolding(fields) {
395395
}, {tbl_id:PHASE_FOLDED});
396396
if (tReq !== null) {
397397
dispatchTableSearch(tReq, {removable: false});
398-
let xyPlotParams = {x: {columnOrExpr: 'phase', options: 'grid'}, y: {columnOrExpr: 'w1mpro_ep', options:'grid'}};
398+
let xyPlotParams = {x: {columnOrExpr: 'phase', options: 'grid'}, y: {columnOrExpr: 'w1mpro_ep', options:'grid,flip'}};
399399
loadXYPlot({chartId:PHASE_FOLDED, tblId:PHASE_FOLDED, xyPlotParams});
400400
}
401401
}

src/firefly/js/templates/lightcurve/LcPhaseFoldingPopup.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ class PhaseFoldingChart extends Component {
347347
lineWidth: 1,
348348
tickWidth: 1,
349349
tickLength: 10,
350-
gridLineColor: '#e9e9e9'
350+
gridLineColor: '#e9e9e9',
351+
reversed: true
351352
},
352353
tooltip: showTooltip ? {enabled: true,
353354
formatter() {
@@ -721,7 +722,7 @@ function setPFTableSuccess(hideDropDown = false) {
721722
let xyPlotParams = {
722723
userSetBoundaries: {xMax: 2},
723724
x: {columnOrExpr: phaseCol, options: 'grid'},
724-
y: {columnOrExpr: flux, options: 'grid'}
725+
y: {columnOrExpr: flux, options: 'grid,flip'}
725726
};
726727
loadXYPlot({chartId: PHASE_FOLDED, tblId: PHASE_FOLDED, xyPlotParams});
727728
});

src/firefly/js/templates/lightcurve/LcViewer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ function onSearchSubmit(request) {
220220
if ( get(request, RAW_TABLE) ){
221221
treq = TblUtil.makeFileRequest('Raw Table', request[RAW_TABLE], null, {tbl_id:RAW_TABLE});
222222
treq.tblType='notACatalog';
223-
xyPlotParams = {x: {columnOrExpr: 'mjd'}, y: {columnOrExpr: 'w1mpro_ep'}};
223+
xyPlotParams = {x: {columnOrExpr: 'mjd'}, y: {columnOrExpr: 'w1mpro_ep', options:'grid,flip'}};
224224
} else if ( get(request, PHASE_FOLDED) ) {
225225
treq = TblUtil.makeFileRequest('Phase Folded', request[PHASE_FOLDED], null, {tbl_id:PHASE_FOLDED});
226226
treq.tblType='notACatalog';
227-
xyPlotParams = {x: {columnOrExpr: 'phase'}, y: {columnOrExpr: 'w1mpro_ep'}};
227+
xyPlotParams = {x: {columnOrExpr: 'phase'}, y: {columnOrExpr: 'w1mpro_ep', options:'grid,flip'}};
228228
} else if ( get(request, PERIODOGRAM) ) {
229229
treq = TblUtil.makeFileRequest('Periodogram', request[PERIODOGRAM], null, {tbl_id:PERIODOGRAM});
230230
treq.tblType='notACatalog';

src/firefly/js/templates/lightcurve/PeriodogramOptionsPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function doPeriodFinding(request) {
217217
dispatchTableSearch(tReq, {removable: true});
218218
let xyPlotParams = {
219219
userSetBoundaries: {yMin: 0},
220-
x: {columnOrExpr: 'PERIOD', options: 'grid, log'},
220+
x: {columnOrExpr: 'PERIOD', options: 'grid,log'},
221221
y: {columnOrExpr: 'POWER', options: 'grid'}
222222
};
223223
loadXYPlot({chartId:PERIODOGRAM, tblId:PERIODOGRAM, markAsDefault:true, xyPlotParams});

0 commit comments

Comments
 (0)