MATLAB Answers

Plot not showing line fully

2 views (last 30 days)
my plot does not show the line for certain areas. Any idea what the problem is?
  4 Comments
Ameer Hamza
Ameer Hamza on 20 Oct 2020
Can you attach the data in a .mat file?

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 20 Oct 2020
There may be some problem with the graphics rendering. See if an update to your graphics driver is available.
Otherwise, adding:
'LineWidth',1.5
to your plot call might be a work-around.
  4 Comments
steffen seligmann
steffen seligmann on 20 Oct 2020
@ameer, i think that actually worked. Thanks!

Sign in to comment.

More Answers (1)

Fangjun Jiang
Fangjun Jiang on 20 Oct 2020
Might it contain nan?
plot([1:3,nan,nan,4:6])
  1 Comment
steffen seligmann
steffen seligmann on 20 Oct 2020
i commented above since u both suggest the same problem

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!