| Contents | Index |
plot::Rectangle(
,
) generates the 2D rectangle with the corners
,
,
,
.
Call:
plot::Rectangle(
..
,
..
, <a = amin .. amax>, Options)
Parameters:
|
|
the left and right border of the rectangle: real numerical values or arithmetical expressions of the animation parameter a. |
|
|
the lower and upper border of the rectangle: real numerical values or arithmetical expressions of the animation parameter a. |
See Also:
plot, plot::Box, plot::copy, plot::Line2d, plot::Line3d, plot::Polygon2d, plot::Polygon3d
Details:
plot::Rectangle creates a 2D rectangle with edges parallel to the coordinate axes.
With Filled = FALSE, the rectangle consists only of its edges. With Filled = TRUE, it is a filled area.
The lines can be set as desired with LineStyle, LineWidth, and LineColor. Cf. example 1.
With LinesVisible = FALSE, the edges are rendered invisible.
For filled rectangles, a FillColor and a FillPattern can be selected. Cf. example 2.
Example 1
We plot two rectangles:
plot(plot::Rectangle(-2..2, -2..2, Filled = TRUE,
FillColor = RGB::Red),
plot::Rectangle(1..5, 1..5, Filled = FALSE,
LineColor = RGB::Black,
LineStyle = Dashed))

Example 2
We plot rectangles with different fill patterns (FillPattern):
plot(plot::Rectangle(0..1, 2..3, Filled = TRUE,
FillPattern = Solid,
FillColor = RGB::Red),
plot::Rectangle(1..2, 2..3, Filled = TRUE,
FillPattern = CrossedLines,
FillColor = RGB::Green),
plot::Rectangle(2..3, 2..3, Filled = TRUE,
FillPattern = XCrossedLines,
FillColor = RGB::Blue),
plot::Rectangle(0..1, 1..2, Filled = TRUE,
FillPattern = HorizontalLines,
FillColor = RGB::Orange),
plot::Rectangle(1..2, 1..2, Filled = TRUE,
FillPattern = VerticalLines,
FillColor = RGB::Violet),
plot::Rectangle(0..1, 0..1, Filled = TRUE,
FillPattern = DiagonalLines,
FillColor = RGB::Brown),
plot::Rectangle(1..2, 0..1, Filled = TRUE,
FillPattern = FDiagonalLines,
FillColor = RGB::Cyan))


Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |