File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 39703970 this [ 'zoom_zmax' ] = 0 ;
39713971
39723972 if ( ( pad != null ) && ( 'fUxmin' in pad ) && ! this . create_canvas ) {
3973- this [ 'zoom_xmin' ] = pad . fUxmin ;
3974- this [ 'zoom_xmax' ] = pad . fUxmax ;
3975- this [ 'zoom_ymin' ] = pad . fUymin ;
3976- this [ 'zoom_ymax' ] = pad . fUymax ;
3977-
3973+ if ( pad . fUxmin !== this [ 'histo' ] [ 'fXaxis' ] [ 'fXmin' ] &&
3974+ pad . fUxmax !== this [ 'histo' ] [ 'fXaxis' ] [ 'fXmax' ] ) {
3975+ this [ 'zoom_xmin' ] = pad . fUxmin ;
3976+ this [ 'zoom_xmax' ] = pad . fUxmax ;
3977+ }
3978+ if ( pad . fUymin !== this [ 'histo' ] [ 'fYaxis' ] [ 'fXmin' ] &&
3979+ pad . fUymax !== this [ 'histo' ] [ 'fYaxis' ] [ 'fXmax' ] ) {
3980+ this [ 'zoom_ymin' ] = pad . fUymin ;
3981+ this [ 'zoom_ymax' ] = pad . fUymax ;
3982+ }
39783983 if ( pad . fLogx > 0 ) {
39793984 this [ 'zoom_xmin' ] = Math . exp ( this [ 'zoom_xmin' ] * Math . log ( 10 ) ) ;
39803985 this [ 'zoom_xmax' ] = Math . exp ( this [ 'zoom_xmax' ] * Math . log ( 10 ) ) ;
39813986 }
3982-
39833987 if ( pad . fLogy > 0 ) {
39843988 this [ 'zoom_ymin' ] = Math . exp ( this [ 'zoom_ymin' ] * Math . log ( 10 ) ) ;
39853989 this [ 'zoom_ymax' ] = Math . exp ( this [ 'zoom_ymax' ] * Math . log ( 10 ) ) ;
You can’t perform that action at this time.
0 commit comments