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 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/162445-how-do-i-prevent-linewidth-property-from-affecting-line-start-and-end-point-on-plot#comment_271619
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/162445-how-do-i-prevent-linewidth-property-from-affecting-line-start-and-end-point-on-plot#comment_271619
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/162445-how-do-i-prevent-linewidth-property-from-affecting-line-start-and-end-point-on-plot#comment_275394
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/162445-how-do-i-prevent-linewidth-property-from-affecting-line-start-and-end-point-on-plot#comment_275394
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/162445-how-do-i-prevent-linewidth-property-from-affecting-line-start-and-end-point-on-plot#comment_277171
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/162445-how-do-i-prevent-linewidth-property-from-affecting-line-start-and-end-point-on-plot#comment_277171
Sign in to comment.