plot
Purpose
Plot the union of polyhedra.
Syntax
h = plot(U, 'Prop1', value1, 'Prop2', value2)
h = U.plot('Prop1', value1, 'Prop2', value2)
h = plot(U1, 'Prop1', value1, ..., U2, 'Prop2', value2, ...)
Description
Plot the union of polyhedra up to dimension three.
Figure properties, such as color, line width, etc, can be specified with "Property" - "Value" pairs.
Input Arguments
U |
PolyUnion object that contains polyhedra in the same dimension.
Class: PolyUnion
|
Prop1 |
Specification of figure properties.
Class: char Allowed values:
-
ColorThe color of the plot specified by real RGB vector or a string name of the color (e.g. 'gray').
-
WireHighlight or not the edges of the set. Default is false.
-
LineStyleSpecify the type of the line to plot edges of the set. Accepted values are '-',':','-.','--', and'none'.
-
LineWidthSpecify the width of the line. Default is 1.
-
AlphaTransparency of the color. The value must be inside [0,1] interval. Default is 1.
-
MarkerType of markings to use. Allowed values are ".", "o", "x", "+", "*", "s", "d", "v", "\^", "<", ">", "p", "h" or "none". Default is "none".
-
MarkerSizeThe size of the marker. Default is 6.
-
ColorMapColor map given either as a M-by-3 matrix, or as a string. Default is 'mpt'. Other available options
are 'hsv', 'hot', 'gray', 'lightgray', 'bone', 'copper', 'pink', 'white', 'flag', 'lines', 'colorcube',
'vga', 'jet', 'prism', 'cool', 'autumn', 'spring', 'winter', 'summer'.
-
ColorOrderEither 'fixed' for fixed ordering of colors, or 'random' for a random order. Default is 'fixed'.
-
ShowIndexThis option is valid only for bounded polyhedra in 2D. If true, display an index of the plotted element. The default choice is false.
|
value1 |
Corresponding value to Prop1. |
Output Arguments
h |
Handle related to graphics object.
Class: handle
|
Example(s)
Example
1
Plot union of three polyhedra in 2D. Define the polyhedra P(1) = Polyhedron('V',[-2,0;-1,1;-1,-1]);
P(2) = Polyhedron('lb',[-1,-1],'ub',[1,1]);
P(3) = Polyhedron('V',[2,0;1,1;1,-1]);
Create non-overlapping union, full-dimensional and bounded U = PolyUnion('Set',P,'Overlaps',false,'FullDim',true,'Bounded',true)
PolyUnion in the dimension 2 with 3 polyhedra.
Properties of the union:
Overlaps: 0
Bounded: 1
FullDim: 1
Functions : none
Plot the union with 0.4 transparency and the lines in width 2. U.plot('Alpha',0.4,'LineWidth',2,'LineStyle','-.');

See Also
fplot
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch