Simple way to "shrink" the dashes on a line
조회 수: 31 (최근 30일)
이전 댓글 표시
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/829535/image.png)
I want my dashes to be small like this graph has it
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/829540/image.jpeg)
댓글 수: 3
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개)
참고 항목
카테고리
Help Center 및 File 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!