marker

버전 1.0.0.0 (1.72 KB) 작성자: Rasmus Anthin
Create a customized marker with a fixed size.
다운로드 수: 2.4K
업데이트 날짜: 2003/7/24

라이선스 없음

» help marker

MARKER Creates a user defined marker.

H = MARKER(X,Y,CDATA[,CMAP[,SIZE[,HALIGN[,VALIGN]]]]) creates a user defined marker CDATA (integer matrix) with colormap CMAP where each integer in CDATA corresponds to a color in CMAP (increasing order). SIZE is the marker size in points. If CDATA is not a square matrix, then the marker's shortest side will be streched so that both its width and height equals SIZE (SIZE defaults to 6).

If CMAP is omitted, its colormap will default to b/w. Furthermore, CMAP must have exactly as many rows as the number of different integers in CDATA.

MARKER does not yet support transparency.

HALIGN is the horizontal alignment and can be either of the following:

'left'
'center' (default)
'right'

VALIGN is the vertical alignment and can be either of the following:

'top'
'middle' (default)
'bottom'

Example:
cross=[0 0 2 1 2 0 0
0 0 0 1 0 0 0
2 0 0 1 0 0 2
1 1 1 2 1 1 1
2 0 0 1 0 0 2
0 0 0 1 0 0 0
0 0 2 1 2 0 0];
cmap=[1 1 1;0 0 1;1 0 1];
marker(.5,.5,cross,cmap,6,'cen','bot')
axis([0 1 0 1])

See also PLOT, GET, SET.

%%%%%%%

do the above example and try resizing the figure and you'll see that the shape and size of the marker is intact.

인용 양식

Rasmus Anthin (2024). marker (https://www.mathworks.com/matlabcentral/fileexchange/3774-marker), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R10
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0