Skip to content

Commit 305cb50

Browse files
committed
Set precision of autoscale axes to 2 significant digits
1 parent 3f82479 commit 305cb50

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
@@ -99,7 +99,7 @@ $(function() {
9999
}
100100
});
101101

102-
$("#main-plot").main_plot("scale_axes", xmin, xmax, ymax, true, true);
102+
$("#main-plot").main_plot("scale_axes", xmin, xmax, parseFloat(ymax.toPrecision(2)), true, true);
103103
this.plot_all_composites()
104104
}
105105
},

0 commit comments

Comments
 (0)