Color distortion in drawing with plot

In a Linux system, the version of MATLAB I use is 2015b. The pictures drawn with plot seem to have some wrong colors. I don't know why.
For simplicity, I used the pot function to compare with the MATLAB of the window system. As shown in the figure below, I used the plot (1:100, 'R') function to display a red straight line. After the image displayed in the Linux environment is enlarged, it is obvious that the color is distorted, the image seems to be rendered, and there are some stains around the line。
Thank you very much for reading my questions and looking forward to your suggestions

답변 (1개)

Image Analyst
Image Analyst 2022년 2월 12일

0 개 추천

Looks like a renderer problem. I suggest you try different renderers. But a better suggestion would be to make that 7 year old dinosaur go extinct and upgrade to the latest version.
What does this say?
plot(1:10, 'r-');
ax = gca;
info = rendererinfo(ax)
opengl info

댓글 수: 9

liao z
liao z 2022년 2월 13일
Thank you very much for your reply. The display is as follows:
Can you see any problems from this information?
Image Analyst
Image Analyst 2022년 2월 13일
I have Windows and it doesn't have the Mesa X11 renderer. Try to find out what other renders are avialable to use. Call tech support if you need help with that.
liao z
liao z 2022년 2월 13일
Thank you very much for your patience. I'll try the relevant settings.
BTW, I found that computers that display no problems also use the same renderer
liao z
liao z 2022년 2월 13일
I checked, "mesa X11" is an OpenGL software renderer, which is mentioned in the help document of MATLAB
Image Analyst
Image Analyst 2022년 2월 13일
Are there other renderers you can use? Maybe it's a problem with your specific graphics card.
liao z
liao z 2022년 2월 13일
How do I switch the renderer?
Image Analyst
Image Analyst 2022년 2월 13일
If you're using GUIDE, it's one of the properties of the main figure (the background space on your GUI). I'm not sure about app designer. Otherwise, call tech support or dive into the documentation.
liao z
liao z 2022년 2월 14일
I can also choose painter as the renderer, but there is no change.:
Image Analyst
Image Analyst 2022년 2월 14일
Well I can't see it but maybe if you zoom way in you can. It could come down to your graphics card adapters. Try updating your drivers.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

릴리스

R2015b

질문:

2022년 2월 12일

댓글:

2022년 2월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by