Skip to Main Content Skip to Search
Product Documentation

TitlePositionposition of object titles

TitlePositionXposition of object titles, x component

TitlePositionYposition of object titles, y component

TitlePositionZposition of object titles, z component

TitlePosition sets the position where the object title is displayed.

TitlePositionX, TitlePositionY, and TitlePositionZ refer to the individual components of TitlePosition.

→ Examples

Attribute

Type

Value

See Also:

Title, TitleAlignment, TitleFont

Details:

Example 1

We plot three points with titles attached to them, changing the alignment. For demonstration purposes, the title positions coincide with the points:

plot(plot::Point2d(0, 3, Title = "Left",   TitlePosition = [0, 3],
                   TitleAlignment = Left),
     plot::Point2d(0, 2, Title = "Center", TitlePosition = [0, 2],
                   TitleAlignment = Center),
     plot::Point2d(0, 1, Title = "Right",  TitlePosition = [0, 1],
                   TitleAlignment = Right),
     Axes = None, PointSize = 2.0*unit::mm,
     ViewingBox = [-1..1, 0..4])

MuPAD graphics

Example 2

A more realistic placement of titles is to separate them slightly from the points:

plot(plot::Polygon2d([[0, 0], [5, 0], [9/5, 12/5]], Closed),
     plot::Point2d([0, 0], Title = "A",
                   TitlePosition = [-0.2, -0.1]),
     plot::Point2d([5, 0], Title = "B",
                    TitlePosition = [5.2, -0.1]),
     plot::Point2d([9/5, 12/5], Title = "C",
                    TitlePosition = [2.0, 2.5]),
     Axes = None, TitleFont = [15], LineColor = RGB::Black,
     LineWidth = 0.5*unit::mm, PointSize = 3*unit::mm)

MuPAD graphics

  


Recommended Products

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