Skip to content

Commit 045da99

Browse files
committed
improve comment for setScale in lsInner
1 parent 704596a commit 045da99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plot_api/subroutines.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ exports.lsInner = function(gd) {
4949
xa = Plotly.Axes.getFromId(gd, subplot, 'x'),
5050
ya = Plotly.Axes.getFromId(gd, subplot, 'y');
5151

52-
xa.setScale(); // this may already be done... not sure
52+
// reset scale in case the margins have changed
53+
xa.setScale();
5354
ya.setScale();
5455

5556
if(plotinfo.bg) {

0 commit comments

Comments
 (0)