PRETTYPLOT works just like PLOT, but avoids the line and markers being on top of each other. Instead, the line joins the markers without touching them.
Example
figure('position',[200,200,800,600])
hold on
set(gca,'xlim',[-3.2,3.2],'ylim',[-3,3])
x = -pi:pi/10:pi;
y = tan(sin(x)) - sin(tan(x));
h = prettyplot(x,y,'-+b',x,2*cos(x),'-xr','LineWidth',2,'MarkerSize',8);
h = [h;prettyplot(x,randn(size(x)),'-o','LineWidth',1,'MarkerSize',6,'color',[0,0.8,0])];
legend(h(1:2:end),'demo','cos','randn');
인용 양식
Cris Luengo (2026). prettyplot (https://kr.mathworks.com/matlabcentral/fileexchange/27237-prettyplot), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R2009b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Startup and Shutdown에 대해 자세히 알아보기
태그
| 버전 | 게시됨 | 릴리스 정보 | |
|---|---|---|---|
| 1.0.0.0 |
