geotickformat
Set or query geographic tick label format
Description
Set Tick Format
geotickformat(
sets the format of the
latitude and longitude tick labels for the current geographic axes or map axes. If the
current axes is not a geographic or map axes, or if there is no current axes, then the
function creates a new geographic axes with the specified tick label format. fmt
)
You can specify the fmt
argument without parentheses. For
example, geotickformat dd
sets the tick label format to decimal
degrees.
Examples
Input Arguments
Output Arguments
Tips
The
geotickformat
function queries the format stored in theTickLabelFormat
property of the axes.For geographic axes, if you override the format for an individual axis by setting the
TickLabelFormat
property of theGeographicRuler
object associated with the axes, then the value returned by thegeotickformat
function does not match the format of the axis or the displayed map. Setting theTickLabelFormat
property 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®.