LPLOT

버전 1.2.0.1 (2.19 KB) 작성자: Jiro Doke
PLOT command that cycles through line styles.
다운로드 수: 2.3K
업데이트 날짜: 2016/9/1

라이선스 보기

LPLOT(X,Y) plots Y versus X just like the PLOT command but cycles through 12 different line styles instead of colors (4 line styles x 3 line widths). The axes LineStyleOrder is set to '-|:|--|-.' and axes ColorOrder is set to [0 0 0]. Multiple data sets, accepted by PLOT, are allowed. e.g. LPLOT(X1, Y1, X2, Y2, ...) or LPLOT(X, [Y1, Y2, ...])
H = LPLOT(...) returns a vector of line handles.

Example:
x = (0:0.1:10)';

y1 = 1.2 * sin(x);
y2 = 0.7 * cos(0.3 * x);
y3 = 2 * sin(0.7 * x);
y4 = y1 + y2;
y5 = y1 + y3;
y6 = y2 + y3;
y7 = y1 - y2;
y8 = y1 - y3;
y9 = y3 - y2;
y10 = y1 .* y2;
y11 = y1 .* y3;
y12 = y2 .* y3;

h = lplot(x, [y1, y2, y3, y4, y5, y6, y7, y8, y9, y10, y11, y12]);
legend(h, ...
'y1','y2','y3','y4','y5','y6','y7','y8','y9','y10','y11','y12', ...
'Location', 'EastOutside');

인용 양식

Jiro Doke (2024). LPLOT (https://www.mathworks.com/matlabcentral/fileexchange/7218-lplot), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Updated license

1.2.0.0

Allow all numeric input arguments accepted by PLOT. Added more line types (12). Updated copyright.

1.1.0.0

allow all numeric input arguments accepted by PLOT. more line types (12).

1.0.0.0

Minor code fix.