DEtools
zoom
zoom in/out 2-D or 3-D plots
Calling Sequence
Parameters
Description
Examples
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)
P
-
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](..).
with⁡DEtools:
H≔12⁢p12+p22+124⁢exp⁡2⁢q2+2⁢sqrt⁡3⁢q1+exp⁡2⁢q2−2⁢sqrt⁡3⁢q1+exp⁡−4⁢q2−18
H≔p122+p222+ⅇ2⁢q2+2⁢3⁢q124+ⅇ2⁢q2−2⁢3⁢q124+ⅇ−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.
zoom⁡plot1,3=−0.1..0.1
P≔plot3d⁡x+2⁢y,sin⁡x⁢y,x=−π..π,y=−π..π:
zoom⁡P,−2..2,−3..3,−1..1
zoom⁡P,2=−4..4,1=−1..1,3=−9..9
See Also
generate_ic
hamilton_eqs
PDEtools
poincare
Poincare
Download Help Document