メインコンテンツ

trimcart

Trim graphic objects to frame of axesm-based map

Syntax

trimcart(h)

Description

trimcart(h) clips the graphic objects to the map frame. h can be a handle or a vector of handles to graphics objects. h can also be any object name recognized by handlem. trimcart clips lines, surfaces, and text objects.

Examples

collapse all

Trim graphic objects to map frame.

figure; 
axesm('miller')
framem
x = linspace(-pi,pi);
y = 3*sin(x);
h = plot(x,y,'r');
load coastlines
geoshow(coastlat,coastlon)
trimcart(h)

Figure contains an axes object. The axes object contains 3 objects of type patch, line.

Limitations

trimcart does not trim patch objects.

Version History

Introduced before R2006a

See Also