Plot - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Terrain

  

Plot

  

plot the terrain

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Plot(T, opts)

T:-Plot(opts)

Parameters

T

-

Terrain; the Terrain object

opts

-

(optional) equation(s) of the form option = value; specify options for the Plot command

Options

res_grid = [posint, posint]

Specifies the number of grid points for plotting the checkered terrain. This option changes the resolution of the plot. The res_grid and res_size options are mutually exclusive.

res_size = [positive, positive]

Specifies the size of the grid for plotting the checkered terrain. This option changes the resolution of the plot. The res_grid and res_size options are mutually exclusive.

color = string or list(numeric)

Defines the terrain plot color. The default is Gray.

Description

The Plot method creates a 3-D plot of the terrain.

Examples

withTires:

Define the terrain equation.

eq0.1tanhx5tanhx30:

Generate a Terrain object using the defined equation. Select the z-axis as the up direction. The order of the two independent variables is [x,y]. Assign the range for x to be -10 to 100, and for y to be -10 to 10. Also, assign 50 grid points for the x-axis and 10 for the y-axis. Finally, set the title to myTerrain.

terrainGenerateTerraineq,10..100,10..10,50,10,up_direction=z,title=myTerrain:

Plot the generated terrain.

terrain:-Plotres_size=1,1,color=100,100,100

See Also

Terrain

Tires