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

Online Help

All Products    Maple    MapleSim


Terrain

  

CheckeredPlot

  

plot the checkered terrain

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

CheckeredPlot(T, opts)

T:-CheckeredPlot(opts)

Parameters

T

-

Terrain; the Terrain object

opts

-

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

Options

grid = [posint, posint]

Specifies the number of grid points for the noise. The grid and size options are mutually exclusive.

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.

size = [posint, posint]

Specifies the size of the grid, in meters, for adding noise. The grid and size options are mutually exclusive.

colors = list(string) or list(list(numeric))

 

Description

The CheckeredPlot method creates a 3-D checkered plot of terrain. The size and colors of the rectangles are defined using the options.

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:

Create a checkered plot of the terrain.

terrain:-CheckeredPlotsize=2,2,res_size=2,2

See Also

Terrain

Tires