필터 지우기
필터 지우기

dark mode figure save flashing

조회 수: 3 (최근 30일)
LJH
LJH 2024년 4월 1일
댓글: Adam Danz 2024년 4월 1일
Hello. I have a simple, but serious problem when using saveas function in dark mode.
I use beta ver of the dark mode in 2023b and I'm trying to generate figure using saveas function.
But when saving given figure, it is flashing and the color of the figure will be inverted and blurred.
Here is my code and results.
x = [1,2,3];
y = [2,4,6];
plot(x,y)
saveas(gcf,'test.png')
Thank you.

채택된 답변

Angelo Yeo
Angelo Yeo 2024년 4월 1일
편집: Angelo Yeo 2024년 4월 1일
Hi @LJH,
Thank you for reporting this issue. I was able to reproduce the issue in R2023b New Desktop.
(1) As a workaround, you can change the theme of your figure into "light" mode and save the figure in R2023b.
fig.Theme = 'light'; % "fig" is figure you use
saveas(gcf,'test2.png')
(2) The issue does not persist in New Desktop R2024a. You can upgrade your release to R2024a to work around the issue.
(3) Can you please report the issue to development team through the feedback button indicated below? Please note that the "New Desktop" mode is beta-released and there can be unexpected issues.
  댓글 수: 1
Adam Danz
Adam Danz 2024년 4월 1일
Thanks for sharing this @LJH
We are aware of this issue in the 23b beta release and, as Angelo mentioned, this issue has been fixed in the 24a release.
Please feel free to send feedback about any other related issues.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by