How do I prevent LineWidth property from affecting line start and end point on plot?
조회 수: 2 (최근 30일)
이전 댓글 표시
Using R2014b, when plotting a line with a large LineWidth, the data, as visualized in a figure, appears to extend beyond its true value. It appears that the LineWidth is being added to the front and back end of the line segment in addition to just affecting its width.
In R2014b,
plot([0 1],[1 1],'LineWidth',10)
In previous versions, the LineWidth did not affect the apparent start/end points of a line, and the above example would start and end (visually) at 0 and 1. Is there a way to ensure this for the R2014b graphics system?
댓글 수: 3
답변 (2개)
Doug Hull
2014년 11월 12일
There is not currently a way to turn of the endcaps on the lines.
Maybe you could use less wide lines, or put markers over the data points?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!