본문 바로가기
개발/Matlab

Matlab plot시 마커 속성 지정하는 방법

by belitino 2014. 8. 21.

출처: http://www.mathworks.co.kr/kr/help/matlab/ref/plot.html

 

Matlab Plot을 할때 포인트의 마커를 지정하고 싶은 경우가 많은데요  Matlab 매뉴얼에 마커의 모양과 색상을 지정하는 방법을 정리한 부분이 있네요. 다시 찾기 귀찮아서 정리해둡니다.

 

Example: '--or' is a red dashed line with circle markers

Specifier Line Style
- Solid line (default)
-- Dashed line
: Dotted line
-. Dash-dot line

 

Specifier Marker
o Circle
+ Plus sign
* Asterisk
. Point
x Cross
s Square
d Diamond
^ Upward-pointing triangle
v Downward-pointing triangle
> Right-pointing triangle
< Left-pointing triangle
p Pentagram
h Hexagram

 

Specifier Color

y

yellow

m

magenta

c

cyan

r

red

g

green

b

blue

w

white

k

black