Be the first to rate this file! 20 downloads (last 30 days) File Size: 2.75 KB File ID: #6387

GeogrCoordLabel

by Sebastian Hölz

 

25 Nov 2004 (Updated 02 Aug 2005)

Code covered by the BSD License  

Function to label axis with geographical coordinates.

Download Now | Watch this File

File Information
Description

GeogrCoordLabel(type, increment, varargin)

Function for labeling the current axis with geographic cordinate labels. The current axis range is used.

Parameters
type:
('deg', 'min' or 'sec')
increment:
increment between two labels, dependent on choice for type

varargin:
'label', var_label(e.g. 'NSEW')
Optional argument for specifying NSEW-style labels.

'origin', var_origin (e.g. [20 30])
Specify where to start labeling.

Examples and further help are given in the help section of the function (type 'help GeogrCoordLabel').

I've just been annoyed by axis labels like: 101°59'60''or alike in ArcMap.

Hope it helps

Sebinator

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
06 Dec 2004

V 1.01.: Corrected spelling in argument checking section (currently Line32) from 'axis' -> 'axes'

02 Aug 2005

V 1.1:
- Included Switch for specifying origin for labeling.
- Fixed format (2 digits) output for min and sec.
- Minor changes.

Tag Activity for this File
Tag Applied By Date/Time
gui Sebastian Hölz 22 Oct 2008 07:36:26
display Sebastian Hölz 22 Oct 2008 07:36:26
annotation Sebastian Hölz 22 Oct 2008 07:36:26
label axis geographic coordinates Sebastian Hölz 22 Oct 2008 07:36:26
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com