Main Content

maptrim

(Removed) Interactively trim vector data on axesm-based map and convert to raster format

The maptrim function has been removed. Use the geocrop or geoclip function instead.

Syntax

maptrim(lat,lon,LineSpec)
maptrim(datagrid,refvec)
maptrim(datagrid,refvec,PropertyName,PropertyValue)

Description

maptrim(lat,lon) displays the supplied map data in a new figure window and allows a region of the map to be selected and saved in the workspace. lat and lon must be vector map data. The output can be line, patch, or regular surface (matrix) data. If patch map output is selected, the inputs lat and lon must originally be patch map data.

maptrim(lat,lon,LineSpec) displays the supplied map using the specified line style, marker, and color.

maptrim(datagrid,refvec) displays data grid data in a new figure window and allows a subset of this map to be selected and saved. The output is regular surface data.

maptrim(datagrid,refvec,PropertyName,PropertyValue) displays the data grid using the surface properties provided. The object Tag, EdgeColor, and UserData properties cannot be set.

Controls

Figure window containing map data and a Customize menu

The maptrim tool displays the supplied map data in a new figure window and activates a Customize menu for that figure. The Customize menu has three menu options: Zoom On/Off, Limits, and Save As.

The Zoom On/Off menu toggles interactive zoom on and off.

The Limits menu option activates the Enter Map Limits dialog box, which is used to enter the latitude and longitude limits of the desired map subset. These entries are two-element vectors, enclosed in brackets. Pressing the OK button zooms in to the new limits. Pressing the Cancel button disregards the new limits and returns to the map display.

Enter the Map Limits dialog box

The Save As menu option is used to specify the variable names in which to save the map data subset. To save line and patch data, enter the new latitude and longitude variable names, along with the map resolution. For surface data, enter the new map and referencing vector variable names, along with the scale of the map. Latitude and longitude limits are optional.

More About

collapse all

Version History

Introduced before R2006a

expand all