Simple way to "shrink" the dashes on a line

조회 수: 35 (최근 30일)
Christopher Arreola
Christopher Arreola 2021년 12월 10일
답변: Chunru 2021년 12월 10일
I want to make the dashes on my lines a lot smaller than they are.
Here is a sample for line of code I used for each line:
plot([2.5 5],[4.71 4.71],'--k')
Here is my current graph:
I want my dashes to be small like this graph has it
  댓글 수: 3
Christopher Arreola
Christopher Arreola 2021년 12월 10일
Can using linewidth make it happen?
Walter Roberson
Walter Roberson 2021년 12월 10일
No, line width does not control the ratio of line to gap for dashes, just how thick the line is.

댓글을 달려면 로그인하십시오.

답변 (1개)

Chunru
Chunru 2021년 12월 10일

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by