MATLAB Plot function, figure is acting weird
이전 댓글 표시
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
Adam Danz
2019년 4월 25일
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
2019년 4월 25일
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
2019년 4월 25일
Adam Danz
2019년 4월 25일
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
2019년 4월 25일
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
2019년 4월 26일
Adam Danz
2019년 4월 26일
Looking forward to your findings!
Christopher Ryan Limoa
2019년 4월 29일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
