Plot not showing line fully

my plot does not show the line for certain areas. Any idea what the problem is?

4 个评论

May be they are NaN's. Check the data.
nnz(isnan(data))
Wht does it give?
none of them is
your command prints out 0.
if i zoom in it shows the line for some reason
Can you attach the data in a .mat file?

请先登录,再进行评论。

 采纳的回答

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 个评论

i have tried the linewidth before which did not fix the problem. But it seems u right that sth is wrong with the displaying. Once i saved the picture as pdf the line showed properly in that document.
Very sorry to bother u guys and thanks for the help. Its working that way which is good enough for me.
No worries!
I am happy this worked for you.
@steffen, Try
opengl software
Maybe it will fix issues with the graphics rendering.
@ameer, i think that actually worked. Thanks!

请先登录,再进行评论。

更多回答(1 个)

Might it contain nan?
plot([1:3,nan,nan,4:6])

类别

帮助中心File Exchange 中查找有关 Graphics Performance 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by