
LineWidth control in x and y (width and height)
3 views (last 30 days)
Show older comments
I would like to fix line thickness to just be applied in the y direction as not to obscure the true x value of the data I am presenting. Below is simplified code that illustrates the issue.
x = [-10 0];
y = [0 0];
plot(x, y,'Color', 'b','LineWidth',100)
set(gca,'layer','top')
hold on
plot([0,5], [0 0],'Color', 'r' ,'LineWidth',20)
It looks like with these high values of LineWidth the true x values are padded where I would like it to stop immediately at the given values. I am using version 2014b.
7 Comments
Walter Roberson
on 5 Nov 2016
Edited: Walter Roberson
on 5 Nov 2016
I confirm the behavior on R2014b on Ubuntu 14.04 with software opengl.
I have submitted a bug report about this, referencing your Question. Although it appears to have been fixed in later releases, there is no public bug report about it, so I do not know if there is any known work-around.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!