Graphics Commands and Object Properties (MATLAB) Part 3

Axis Properties – Section 7.5.3

Property

Read

Only

Value Type/Options

Format

Properties Affecting Transparency and Lighting

ALim

No

ALimMode

No

‘ (auto) | manual ]

AmbientLightColor

No

Properties Controlling Boxes and Tick Marks

Box

No

[ on | (off) ]

row

TickLength

No

[ 2-Dticklength 3-Dticklength ]

2-element

row

TickDir

No

[ (in) | out ]

TickDirMode

No

[ (auto) | manual ]

XMinorTick

No

[ on | (off) ]

row

XTick

No

numbers


XTickLabel

No

string

matrix

XTickLabelMode

No

[ (auto) | manual ]

row

XTickMode

No

‘ (auto) | manual ]

row

Properties Affecting Character Formats

FontAngle

No

(normal) | italic | oblique ]

FontName

No

name of desired font

string

FontSize

No

number

1 element

FontUnits

No

inches | centimeters | normalizec | (points) | pixels ]

string

FontWeight

No

light | (normal) | demi | bold ]

string

Property

Read

Only

Value Type/ Options

Format

Properties Determining Axis Location and Position

Position

No

[left bottom width height]

4-element

row

Units

No

[ inches | centimeters | {normalized] | points | pixels | characters ]

XAxisLocation

No

[ top | {bottom} ]

string

YaxisLocation

No

[ {left} | right ]

row

CurrentPoint

No

mouse click near and far x, y, z axis locations

2-by-3 matrix

Title

No

handle of text object

1 element

Properties Affecting Grids, Lines, and Color

Color

No

[ Red Green Blue ] or color string

ColorOrder

No

M RGB number triplets

M-by-3

matrix

CLim

No

[ cmin cmax ]

2-element

row

CLimMode

No

[ {auto} | manual ]

string

DrawMode

No

[ {normal} | fast ]

XGrid

No

[ on | {off} ]

GridLineStyle

No

[ - I - I {:} I -. I none ]

string

Layer

No

[ top | {bottom} ]

string

LineStyleOrder

No

string array of linestyle symbol(s)

matrix

LineWidth

No

number

1 element

MinorGridLineStyle

No

[ - I - I {:} I -. I none ]

XColor

No

[ Red Green Blue ] or color string

row

Xform

No

4 x 4 Perspective Transformation

4 x 4 matrix

XLabel

No

Handle of text object

1 element

XMinorGrid

No

[ on I {off} ]

row

NextPlot

No

[ add I {replace} I replacechildren ]

string

Properties Affecting Axis Limits

DataAspectRatio

No

[ x y z ] relative ratio of axis lengths

2-element

row

DataAspectRatioMode

No

[ {auto} I manual ]

string

PlotBoxAspectRatio

No

[ x y z ] relative ratios of box lengths

3-element

row

PlotBoxAspectRatioMode

No

[ {auto} I manual ]

XDir

No

[ {normal} I reverse ]

row

XLim

No

[xmin xmax]

2-element

row

XLimMode

No

[ {auto} I manual ]

row

XScale

No

[ {linear} I log ]

row

Property

Read

Only

Value Type/Options

Format

Axes Properties Related to Viewing Perspective

CameraPosition

No

[ x y z ] numbers

3-element

row

CameraPositionMode

No

[ {auto} | manual ]

string

CameraTarget

No

[ x y z ] numbers

3-element

row

CameraTargetMode

No

[ {auto} | manual ]

string

CameraUpVector

No

[ x y z ] numbers

3-element

row

CameraUpVectorMode

No

[ {auto} | manual ]

string

Came raVi ewAngl e

No

number

1 element

CameraViewAngleMode

No

[ {auto} | manual ]

string

Layer

No

[ top | {bottom} ]

string

Projection

No

[ {orthographic} | perspective ]

View

No

[ DegreesAzimuth DegreesElevation ]

2-element

row

Property

Read

Only

Value Type/Options

Format

Color

No

[Red Green Blue] or color string

RGB row

EraseMode

No

[{normal} | background | xor | none ]

row

LineStyle

No

tmpb8bf-324

row

LineWidth

No

number

1 element

Marker

No

tmpb8bf-325

row

MarkerSize

No

number

1 element

MarkerEdgeColor

No

[none | {auto} ] -or- a ColorSpec

row

MarkerFaceColor

No

[{none} | auto ] -or- a ColorSpec

row

XData

No

numbers

vector

YData

No

numbers

vector

ZData

No

numbers

vector

Property

Read

Only

Value Type/Options

Format

Curvature

No

[x, y]

1 or 2 element

EraseMode

No

[ {normal} | background | xor | none ]

row

FaceColor

No

ColorSpec | {none}

row

EdgeColor

No

{ColorSpec} | none

row

LineStyle

No

[ {-} | - | : | -. | none ]

row

LineWidth

No

number

1 element

Position

No

[x,y,width, height]

vector

Patch Properties – Section 7.5.6

Property

Read

Only

Value Type/ Options

Format

Properties Defining Patch Objects

Faces

No

permutation of 1:M

N-by-V matrix

Vertices

No

numbers x-, y-, z-coordinates

M-by-3 matrix

XData

No

coordinates of the points at the vertices

vector or matrix

YData

No

coordinates of the points at the vertices

vector or matrix

ZData

No

coordinates of the points at the vertices

vector or matrix

Properties Specifying Lines, Color, and Markers

CData

No

numbers

vector

CDataMapping

No

[ direct | {scaled}]

row

EdgeColor

No

[ none | {flat} | interp ] or [Red Green Blue] or color string

row

FaceColor

No

[ none | {flat} | interp ] or [Red Green Blue] or color string

row

FaceVertexCData

No

RGB per patch, face, or vertex

matrix

LineStyle

No

[ {'-'} | '--' | '-.' | ':' | 'none']

row

LineWidth

No

number

1 element

Marker

No

[ 'square' | 'diamond' | 'v' | '" | '>' | '<' | '.' | 'pentagram' | hexagram' | 'o' | V | '+' | '* |

{none}]

row

MarkerEdgeColor

No

[ none | {auto} | [R G B] | color_string]

row

MarkerFaceColor

No

[ {none} | auto | [R G B] | color_string]

row

MarkerSize

No

number

1 element

Properties Affecting Lighting and Transparency

AmbientStrength

No

numbers

vector

BackFaceLighting

No

[ unlit | lit | {reverselit} ]

row

FaceLighting

No

[ none | {flat} | gouraud | phong ]

row

DiffuseStrength

No

number

1 element

EdgeLighting

No

[ {none} | {flat} | gouraud | phong ]

row

SpecularColorReflectance

No

number ranging from 0 to 1

1 element

SpecularExponent

No

number > or = to 1

1 element

SpecularStrength

No

number ranging from 0 to 1

1 element

VertexNormals

No

numbers

M-by-3 matrix

NormalMode

No

[ {auto} | manual ]

row

EraseMode

No

[ {normal} | none | xor | background ]

row

AlphaDataMapping

No

[ none | direct | {scaled} ]

row

EdgeAlpha

No

[{scalar = 1} | flat | interp ]

1 element or string

FaceAlpha

No

[{scalar = 1} | flat | interp ]

1 element or string

FaceVertexAlphaData

No

transparency data

1 element or M-by-1 matrix

Next post:

Previous post: