dashline

버전 1.0.0.0 (2.9 KB) 작성자: Edward Abraham
Plots dashed and dotted lines with user-defined linestyles, and with accurate dash lengths.
다운로드 수: 7.5K
업데이트 날짜: 2002/9/27

라이선스 없음

Dashline is an m-file which was written to give accurate control over dashed and dotted lines, for producing publication quality graphics. The inbuilt line-styles in Matlab are limited and often give poor results. Dashline gives the user freedom to produce any combination of dashes and markers they wish. It is based on a two dash repeat pattern, with the user giving the lengths of the two dashes and the two gaps (in mm), or specifying markers to be used in place of the dashes.

dashline( Xdata, Ydata, Dash1, Gap1, Dash2, Gap2, ...) plots the data in xdata and ydata with a line that has dashes of length Dash1 and Dash2, separated by gaps of length Gap1 and Gap2 (all in mm). Dash1 and Dash2 may be plotsymbol strings, such as '+'. Additional property/value pairs may be included and will set properties of the plotted lines.

An example:

>clf
>dashline([1:10],rand(1,10),'.r',2,'.g',2)

% produces a dashed line with red and green dots
% separated by 2mm gaps

>hold on;
>dashline([1:10],rand1,10),4,2,'o',2,'markerfacecolor','y','color','k')

% produces a line with black dashes and yellow centered
% circles

인용 양식

Edward Abraham (2025). dashline (https://kr.mathworks.com/matlabcentral/fileexchange/1892-dashline), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R12
모든 릴리스와 호환
플랫폼 호환성
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.0.0.0