geotickformat
Set or query geographic tick label format
Syntax
Description
geotickformat
sets the format of the
latitude and longitude tick labels for the current geographic axes. When you use this
syntax, you do not need to enclose the fmt
fmt
argument in quotes. For
example, the command geotickformat dd
sets the tick label format to
decimal degrees.
geotickformat(
sets the tick label
format for the current geographic axes. When you use this syntax, enclose the
fmt
)fmt
input in single or double quotes, for example
geotickformat('dd')
.
returns the
tick label format for the current geographic axes.tickLabelFormat
= geotickformat
returns the tick label format for the geographic axes specified by
tickLabelFormat
= geotickformat(gx
)gx
.
Examples
Input Arguments
Tips
The value returned from
geotickformat
is the value of theTickLabelFormat
property of the geographic axes. You can override this format value on an individual axis by setting theTickLabelFormat
property of theGeographicRuler
object associated with the axis. In this case, the value returned bygeotickformat
does not match the format value of the axis or the actual display. Setting theTickLabelFormat
of an individual axis is not recommended.
Version History
Introduced in R2019a
1 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.