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

4 comentarios

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

Iniciar sesión para comentar.

 Respuesta aceptada

Star Strider
Star Strider el 20 de Oct. de 2020

0 votos

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 comentarios

steffen seligmann
steffen seligmann el 20 de Oct. de 2020
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.
Star Strider
Star Strider el 20 de Oct. de 2020
No worries!
I am happy this worked for you.
Ameer Hamza
Ameer Hamza el 20 de Oct. de 2020
@steffen, Try
opengl software
Maybe it will fix issues with the graphics rendering.
steffen seligmann
steffen seligmann el 20 de Oct. de 2020
@ameer, i think that actually worked. Thanks!

Iniciar sesión para comentar.

Más respuestas (1)

Fangjun Jiang
Fangjun Jiang el 20 de Oct. de 2020

0 votos

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

1 comentario

steffen seligmann
steffen seligmann el 20 de Oct. de 2020
i commented above since u both suggest the same problem

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Oct. de 2020

Comentada:

el 20 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by