FillPattern, FillPatterns

Type of area filling

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Value Summary

FillPatternInheritedCrossedLines, DiagonalLines, FDiagonalLines, HorizontalLines, Solid, VerticalLines, or XCrossedLines
FillPatternsOptionalSolid, HorizontalLines, VerticalLines, DiagonalLines, FDiagonalLines, CrossedLines, or XCrossedLines

Description

FillPattern determines the style of area filling used: lines, grids, or a solid fill.

FillPatterns is used for objects with more than one type of area to fill.

Areas can be filled in various ways. You can have horizontal, vertical, or diagonal lines (HorizontalLines, VerticalLines, DiagonalLines, FDiagonalLines), a horizontal/vertical grid (CrossedLines), a diagonal grid (XCrossedLines), or a solid fill (Solid).

For types like plot::Bars2d, FillPatterns is a list of fill patterns used cyclically, in this case for the groups of data plotted.

Examples

Example 1

The fill patterns look like this:

plot(
 plot::Rectangle(0..1, 0..1, FillPattern = Solid),
 plot::Rectangle(1..2, 0..1, FillPattern = DiagonalLines),
 plot::Rectangle(2..3, 0..1, FillPattern = FDiagonalLines),
 plot::Rectangle(3..4, 0..1, FillPattern = HorizontalLines),
 plot::Rectangle(4..5, 0..1, FillPattern = VerticalLines),
 plot::Rectangle(5..6, 0..1, FillPattern = CrossedLines),
 plot::Rectangle(6..7, 0..1, FillPattern = XCrossedLines),
 Filled = TRUE, AxesInFront = TRUE
)

Except for Solid, the fill patterns let objects below be seen:

plot(
 plot::Function2d(sin(x*PI/14), x = 0..7, Color = RGB::Black),
 plot::Function2d(cos(x*PI/14), x = 0..7, Color = RGB::Blue),
 plot::Rectangle(0..1, 0..1, FillPattern = Solid),
 plot::Rectangle(1..2, 0..1, FillPattern = DiagonalLines),
 plot::Rectangle(2..3, 0..1, FillPattern = FDiagonalLines),
 plot::Rectangle(3..4, 0..1, FillPattern = HorizontalLines),
 plot::Rectangle(4..5, 0..1, FillPattern = VerticalLines),
 plot::Rectangle(5..6, 0..1, FillPattern = CrossedLines),
 plot::Rectangle(6..7, 0..1, FillPattern = XCrossedLines),
 Filled = TRUE, AxesInFront = TRUE
)

See Also

MuPAD Functions