Explore Command Updates - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Information : Updates : Maple 18 : Explore Command Updates

Explore

 

The Explore command provides an easy-to-use tool for creating interactive applications within the current document or worksheet. Maple 18 introduces many significant updates and additions, including:

• 

Custom placement of controls

• 

Choice of controller types for range parameters including dials, gauges and more

• 

Support for a list of parameters choices using ComboBox controls

• 

Customization of the size of the display component

• 

Multi-parameter animation

• 

Interactive marker controls on 2-D plots

• 

Interactive exploration of images

In addition to the list above, the interactive pop-up dialog window of the Explore command has also been enhanced. The dialog window appears when the parameters option is not supplied in the calling sequence of the Explore command. This includes the case of invoking Explore by using the context-sensitive menu after right-clicking on an expression or unevaluated function call.

 

For additional details and illustrative examples, see the Explore Example Worksheet.

 

Placement of Controls

Controller Types for Range Parameters

ComboBox Controls

Animation

Interactive Markers

Images

See Also

Placement of Controls

The controls for parameters can now be placed either below, to the left, or to the right of the display component. All parameter controls can be placed via a single optional argument, placement, to the Explore command, as a customized default.

 

The parameter controls placement can also be specified individually as an override of any default setting.

Explore plotb+c2c+2cosax,x=6..6,view=8..8 ,                  parameters=c=0.0..2,                                               b=3..3,                                               a=1..3.0,placement=bottom,                  placement=right

Controller Types for Range Parameters

Parameters whose values are specified as a range can now be one of several types of variable controller.

 

The variable controller choices are: slider, dial, volumegauge, meter, and rotarygauge.

 

The size of the plotting component can be optionally specified. By default, its size is determined by the size of the initial plot.

Exploreplotc2c+2sinax,x=6..6,view=4..4,                  parameters=c=0.0..2,controller=volumegauge,                                               a=1..3.0,controller=dial,                  size=400,246,                  placement=left

ComboBox Controls

Parameters whose values are specified as lists are incorporated as ComboBox controls.

Exploreplotc2c+2sinax,x=6..6,view=4..4, color=r, style=s,                  parameters=r=red,blue,green,label=color,                                               s=line,point,label=style,                                                c=0.0..2,                                                a=1..3.0,                 size=400,246,                 placement=right

 

 

Animation

The display of the generated frames at each set of parameter values can be animated. Each parameter control can have its own check box which determines whether it will play with the animation. These check boxes can be unselected while the animation is playing.

 

Note that any parameters whose animation check box is unselected during play can still be interactively controlled.

 

The animation check boxes can be specified as a single new default option, and this in turn can be overridden on any parameter's individual specification. The animation check boxes can be specified as present and initially selected, present and initially unselected, or absent altogether.

 

By default, any combo box control of a discrete valued parameter does not get an animation check box unless this is supplied in that parameter's individual specification.

 

Exploreplotc2c+2sinax,x=6..6,view=4..4,color=r,style=s,                                     parameters=r=red,blue,green,label=color,animate=true,                                                s=line,point,line,label=style,animate=false,                                                 c=2.0..2,                                                a=1..3.0,                                     size=400,246,                   animate,                   placement=left

 

Loop Animation

The loop option allows for looped play of the animated sequence.

 

The loop control checkbox can be omitted altogether (default), initially selected, or initially unselected.

Exploreplotc2c+2sinax,x=6..6,view=4..4,color=r,style=s,                 parameters=r=red,blue,green,label=color,animate=true,                                             s=line,point,line,label=style,animate=false,                                             c=2.0..2,                                             a=1..3.0,                size=400,246,               animate,               loop,               placement=left

 

Interactive Markers

Pairs of range controls (e.g. sliding controls) can be coupled as interactive marker controls on 2-D plots. Each marker is displayed as a cross in the plot, which may be dragged interactively using the mouse pointer.

 

By default, the individual sliding controls associated with marker parameters are hidden, but these can be optionally shown either all together or individually.

DEplot and Initial Conditions

deS:=ⅆⅆtxt=0.5xtyt

deS:=ⅆⅆtxt=0.5xtyt

(5.1.1)

deI:=ⅆⅆtyt=0.5xtyt0.15yt

deI:=ⅆⅆtyt=0.5xtyt0.15yt

(5.1.2)

ExploreDEtoolsDEplotdeS,deI,xt,yt,                                                        t=0..40,x=0..1,y=0..0.6,                                                       x0=x0,y0=y0,arrows=medium,                   parameters=x0=0.3..0.99,y0=0.1..0.5,                   showmarkercontrols,                 markers=x0,y0,                  placement=left,                 animate

 

Images

In Maple 18, procedures which return images can be explored interactively.

Basic example: float[8] Array

Arrays which are supported by the ImageTools package can be interpreted as images.

 

The following is a basic example involving a function call which evaluates to a 2-dimensional datatype=float[8] Array. This is interpreted as a grayscale image.

ExploreArray1..100,1..100,i,j→evalfsinpi+j10,datatype=float8,                   parameters=p=2.0..4.0,size=200,200

Procedures Returning an Image

A function call to a command or procedure, which returns an image, can also be explored.

img:=ImageTools:-Readcatkerneloptsdatadir,/images/excavator.jpg:

ExploreImageTools:-Thresholdimg,threshold,                  parameters=threshold=0.2..0.8,placement=right,size = 320, 210

Animation

Exploration of images can also be animated.

withFractals:-EscapeTime:

ExploreMandelbrot300,1.78+11.5Iⅇzoom,1.78+2.2+1.5Iⅇzoom,                                              iterationlimit=a,output=layer1,                   parameters=a=50..300,zoom=0.0..8.0,                  animate,                  placement=left

 

RGB Color Space: An Application

The next example uses a self-initializing module to perform efficient in-place updates of an image Array as the parameter values change. Right click the code edit region and choose 'Execute Code' in order to initialize the procedure.

A single call to F will produce a color image as output, which can be visualized by embedding it in the current worksheet.

ImageTools:-EmbedF0.7,0.3,0.9

An interactive application can now be easily constructed.

ExploreFRed,Green,Blue,                  parameters=Red=0.2..1,Green=0.2..1,Blue=0.2..1,                 initialvalues=Red=0.7,Green=0.7,Blue=0.7,                 placement=right,                  title=The Additive RGB Color Space

The Additive RGB Color Space

 

See Also

Explore, Explore Examples