Skip to content

Commit 97a6d24

Browse files
committed
Also grid ranges in ratio plot painter
1 parent 4a7393f commit 97a6d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/draw/TRatioPlotPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class TRatioPlotPainter extends ObjectPainter {
6565
up_fp._ratio_painter = this;
6666

6767
up_fp.zoom = function(xmin,xmax,ymin,ymax,zmin,zmax) {
68-
this._ratio_painter.setGridsRange(xmin, xmax);
6968
return this.o_zoom(xmin,xmax,ymin,ymax,zmin,zmax).then(res => {
69+
this._ratio_painter.setGridsRange(up_fp.scale_xmin, up_fp.scale_xmax);
7070
this._ratio_low_fp.o_zoom(up_fp.scale_xmin, up_fp.scale_xmax);
7171
return res;
7272
});

0 commit comments

Comments
 (0)