LineWidth control in x and y (width and height)

3 views (last 30 days)
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
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.
C K
C K on 5 Nov 2016
Walter,
Thank you for your help on this and narrowing down the root of the problem. I will see about getting a more recent version if possible but that is not always easy. Thanks again!

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Nov 2016

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!