PolyhedralSets
Plot
plot a polyhedral set
Calling Sequence
Parameters
Description
Examples
Compatibility
Plot(polyset)
Plot(polyset, options)
polyset
-
polyhedral set or list of polyhedral sets
options
(optional) list of options for formatting the plot.
Plots the given polyhedral set(s) in their coordinate space. The sets must all have either two or three coordinates.
The options parameter is a sequence of name = value pairs. When there are two coordinates, the plot/options can be specified, and the plot3d/options specified when there are three coordinates.
The style of the faces, edges, vertices and set interiors can be controlled individually by specifying faceoptions = [name = value], edgeoptions = [name = value], vertexoptions = [name = value], or interioroptions = [name = value], where the lists are formed of the valid options from either plot/options or plot3d/options. Style options specified in options will be applied to the face of highest dimension in polyset. By default, the faces, edges, vertices and interior are all drawn explicitly to distinguish between bounded and unbounded sets.
If polyset is a list of polyhedral sets, the above options can be given as a list in the form of e.g. faceoptions = [ color = [color1, color2,...], thickness = [10, 12, ...], ...] to style the sets individually.
with⁡PolyhedralSets:
The cube plotted with the default style
c≔ExampleSets:-Cube⁡:Plot⁡c
The faces of a set can be styled independently using the standard plot options
Plot⁡c,faceoptions=color=purple,transparency=0.5,edgeoptions=color=black,vertexoptions=color=red,symbolsize=30
The following set has two faces, one edge and no vertices and extends to infinity.
p≔PolyhedralSet⁡y≤1−3⁢z,y≤−13−13⁢z,x,y,z:IsBounded⁡p
false
The interior of the set is rendered transparently by default.
Plot⁡p
An empty set generates an empty plot
Plot⁡ExampleSets:-EmptySet⁡x,y,z
Lists of plots will be drawn with different colors automatically
pss≔SplitIntoSimplices⁡c
pss≔{Coordinates:x1,x2,x3Relations:−x3≤1,−x2+x3≤0,−x1+x2≤0,x1≤1,{Coordinates:x1,x2,x3Relations:−x2≤1,x2−x3≤0,−x1+x3≤0,x1≤1,{Coordinates:x1,x2,x3Relations:−x3≤1,x2≤1,−x1+x3≤0,x1−x2≤0,{Coordinates:x1,x2,x3Relations:−x2+x3≤0,x2≤1,−x1≤1,x1−x3≤0,{Coordinates:x1,x2,x3Relations:x3≤1,−x2≤1,−x1+x2≤0,x1−x3≤0,{Coordinates:x1,x2,x3Relations:x3≤1,x2−x3≤0,−x1≤1,x1−x2≤0
Plot⁡pss,transparency=0.3
The PolyhedralSets[Plot] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
PolyhedralSets[Graph]
PolyhedralSets[Faces]
PolyhedralSets[PolyhedralSet]
Download Help Document