Documentation of m_track


Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)


Function Synopsis

m_track(lon,lat,varargin);

Help text

 M_TRACK Draw a trackline on a map

	M_TRACK draws navigation tracklines on a map. The trackline
	itself is optionally annontated with tick marks, time labels, and
	date labels.

	M_TRACK (lon,lat) draws just a plain line. lon&lat are in decimal
	degrees, +N, -S, +E, -W.

	M_TRACK (lon,lat,navtimes) draws a line, with tick marks every
	hour, time labels every four hours, and date labels every twelve
	hours. navtimes is in MatLab "serial date numbers," representing the
	number of days since January 1, 0000. By convention, ticks and 
	time labels are drawn on the starboard side, dates on the port.

	M_TRACK (lon,lat,navtime, 'string', property/value pairs) can be
	used to change tick marks, time and date label properties. Allowable
	combinations are:

	'ticks'		tickmark interval in minutes, default=60
	'times'		time label interval in minutes, default=240 (4hrs)
	'dates'		date label interval in minutes, default=720 (12hrs)
	'timef[ormat]'	format of time string, see datestr(), default=15
	'datef[ormat]'	format of date string, see datestr(), default=2
	'color'		color of track/labels, default is black
	'linew[idth]'	width of trackline, default is current
	'lines[tyle]'	style of line, default is solid line
	'fonts[ize]'	size of font, default is current
	'fontn[ame]'	name of font, default is current
       'clip'		'on' or 'off' (clipping to map)
	'orien[t]'	label orientation, 'true' or 'upright', default='true'

	time labels need to be whole multiples of tick intervals. date
	labels need to be whole multiples of time labels. using '0' for
	any value will tick/label all points. using a negative number
	will suppress tick/label.

Cross-Reference Information

This function calls This function is called by

Pierre-Michel THEVENY <theveny@dt.insu.cnrs.fr>