Skip to content

Commit 7ff0600

Browse files
authored
Merge pull request #412 from Caltech-IPAC/IRSA-595-axis-scale-format
IRSA-595: set default axis format to exponential.
2 parents 92ac255 + 58be8aa commit 7ff0600

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

src/firefly/js/charts/ui/HistogramPlotly.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ export class HistogramPlotly extends Component {
170170
side: get(xAxis, OPP) ? 'top' : 'bottom',
171171
titlefont: {
172172
size: FSIZE
173-
}
174-
},
173+
},
174+
exponentformat:'e'
175+
},
175176
yaxis: {
176177
title: 'Number',
177178
gridLineWidth: 1,
@@ -182,7 +183,8 @@ export class HistogramPlotly extends Component {
182183
side: get(yAxis, OPP) ? 'right' : 'left',
183184
titlefont: {
184185
size: FSIZE
185-
}
186+
},
187+
exponentformat:'e'
186188
},
187189
margin: {
188190
l: leftMargin,

src/firefly/js/charts/ui/XYPlotPlotly.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ function getChartingInfo(props) {
367367
tickfont: {
368368
size: FSIZE
369369
},
370-
zeroline: false
370+
zeroline: false,
371+
exponentformat:'e'
371372
},
372373
yaxis: {
373374
autorange: false,
@@ -389,7 +390,9 @@ function getChartingInfo(props) {
389390
tickfont: {
390391
size: FSIZE
391392
},
392-
zeroline: false
393+
zeroline: false,
394+
exponentformat:'e'
395+
393396
},
394397
margin: {
395398
l: yOpposite ? MIN_MARGIN_PX : Y_TICKLBL_PX,

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ class PhaseFoldingChart extends PureComponent {
345345
},
346346
tickfont: {
347347
size: 12
348-
}
348+
},
349+
exponentformat:'e'
349350
},
350351
yaxis: {
351352
title: `${flux} (mag)`,
@@ -357,7 +358,8 @@ class PhaseFoldingChart extends PureComponent {
357358
autorange: 'reversed',
358359
titlefont: {
359360
size: 12
360-
}
361+
},
362+
exponentformat:'e'
361363
},
362364
margin: {
363365
l: 50,

0 commit comments

Comments
 (0)