[Scilab-users] Zoom in plot

torpedo dcstoyanov at gmail.com
Fri Jul 24 14:30:59 CEST 2020


*copy()* is just what I was looking for, but, then, also *xpoly()* and
*xarrows()* have to be delayed (otherwise they are printed in the zoom axes)

clf()

// main axes
x = 0:0.1:20
plot(x, acosh(x),"r", x, asinh(x), "g")
a = gca()
a.axes_bounds = [0, 0, 1, 1]

// zoom axes
z = copy(a)
z.axes_bounds = [.6, .3, .2, .5]
zoom_rect(z, [0, 0, 2, 1])

sca(a)  // make main axes current
legend(["acosh", "asinh"], pos = "in_upper_left")
xpoly([0, 0, 2, 2], [0, 1, 1, 0])
xarrows([2, 12], [.5, 1.5], 8)



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html



More information about the users mailing list