zoom in/out 2-D or 3-D plots
zoom(P, a..b, c..d)
zoom(P, a..b, c..d, e..f)
zoom(P, 1=a..b, 3=c..d, 2=e..f)
a 2-D or 3-D plot structure
zoom allows for changing the ranges of the display of a given 2-D or 3-D plot without having to recalculate it, thus saving time and memory resources.
Two different syntaxes are available. In the first one, the first argument (a plot) is followed by ranges. The first range will be used as horizontal range in 2-D plots, or as the "first" range in 3-D plots. The second range will be the vertical range in 2-D plots or the second horizontal range in 3-D plots. When using this syntax, all the ranges must be given; that is, two ranges for 2-D plots and three for 3-D plots.
The second syntax, a bit more flexible, permits the zooming of some (or all) of the coordinates. For example, zoom just one coordinate by indicating it with a number from the list [1,2,3]. The original ranges for the other coordinates will remain unchanged.
This function is part of the DEtools package, and so it can be used in the form zoom(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[zoom](..).
H ≔ 1⁢p12+p222+1⁢ⅇ2⁢q2+2⁢3⁢q1+ⅇ2⁢q2−2⁢3⁢q1+ⅇ−4⁢q224−18
Create a 3-D plot of the surface-of-section.
plot1 ≔ poincare⁡H,t=−100..100,0,0.1,1.4,0.1,0,stepsize=0.1,iterations=2,3
Now, zoom the plot above; it is possible to cut a slice (a small range for the third axis) and display the 2-D surface-of-section.
P ≔ plot3d⁡sin⁡x⁢y,x+2⁢y,x=−Pi..Pi,y=−Pi..Pi:
Download Help Document
What kind of issue would you like to report? (Optional)