Skip to content

Commit e596da1

Browse files
committed
Reduced autoscaling precision when adding a composite
1 parent 8a56b25 commit e596da1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/widgets/settings_table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $(function() {
5252

5353
plot_all_composites: function(scale_axes=false, allow_shrink=false) {
5454
if (scale_axes) {
55-
$("#main-plot").main_plot("scale_axes", scale_axes.xmin, scale_axes.xmax, scale_axes.ymax, allow_shrink || this._elements.rows.reduce(function(sum, row) {
55+
$("#main-plot").main_plot("scale_axes", scale_axes.xmin, scale_axes.xmax, parseFloat(scale_axes.ymax.toPrecision(2)), allow_shrink || this._elements.rows.reduce(function(sum, row) {
5656
let inst = $(row.node()).settings_row("instance");
5757
return sum + (inst.files_loaded && !inst.hide)
5858
}, 0) === 1, true)

0 commit comments

Comments
 (0)