[Scilab-users] [Scilab] Is it possible to constraint vertical zoom

iñigo icenoz at eo6ingenieria.com
Mon Aug 21 07:52:29 CEST 2017


Hi 
try this (after scroll click on scroll wheel button):

/////////////////////////////////////////////////////////////////////////
function hzoom_event_handler(win, x, y, ibut)
 if ibut == -1000 then return; end
 if ibut == 4 then
   zoom_box = get(gca(), "zoom_box");
   data_bounds = get(gca(), "data_bounds");
 
   zoom_rect(gca(), [zoom_box(1) data_bounds(3) zoom_box(3)
data_bounds(4)]);
  end
endfunction

///////////////////////////////////////////////////////////////
Usage:::
plot2d()
fig = gcf()
fig.event_handler = "hzoom_event_handler";
fig.event_handler_enable = "on";
////////////////////////////////////////////////////////////////////


Bye.



--
View this message in context: http://mailinglists.scilab.org/Scilab-Is-it-possible-to-constraint-vertical-zoom-tp4036896p4036898.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list