MATLAB Plot function, figure is acting weird
Mostrar comentarios más antiguos
My figure that I created in MATLAB using Plot function looks like the picture.
Any idea why it is happening?
I haven't dont anything, last time it was just fine.
Thanks for the time

10 comentarios
Adam Danz
el 25 de Abr. de 2019
The code you shared produces the blue line. As for the rest of the plot, you'll need to share some code. Not a picture of code. Rather, in the form of text that can be copied and that will reproduce the symptoms.
Christopher Ryan Limoa
el 25 de Abr. de 2019
I would shut down matlab, restart it, then plot something simple like
figure
plot(0,0,'ro')
xlim([-1 1])
ylim([-1 1])
and if the problem persists, do the following:
- Copy-paste the code into the comments below
- ...along with a screen shot of the figure
- Open startup.m (if you have that file) and copy its content into the comment as well
and if the problem doesn't persist, you can tell future people who read this post that resetting matlab killed the bug.
If the problem only occurs with more complex plots, it's more likely that something wrong with the code.
Christopher Ryan Limoa
el 25 de Abr. de 2019
Adam Danz
el 25 de Abr. de 2019
This appears to be an issue being caused by your interface with Python. To confirm that this isn't a problem with Matlab, please do the following.
- Comment-out everything in your startup.m file so it does nothing.
- Close Matlab,
- Restart Matlab and produce the simple figure I suggested earlier.
Christopher Ryan Limoa
el 25 de Abr. de 2019
I'm out of ideas. What version of matlab are you using and what operating system? Does that pattern appear when you open an empty figure using figure()? It looks like the patterns covers the entire figure, not just the axes. You may have to contact technical support if no one else here has other suggestions.
Christopher Ryan Limoa
el 26 de Abr. de 2019
Adam Danz
el 26 de Abr. de 2019
Looking forward to your findings!
Christopher Ryan Limoa
el 29 de Abr. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Graphics Performance en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
