Figure does not retain its transparency after saving it as .png

조회 수: 4 (최근 30일)
Kevin Akash Rajasekaran
Kevin Akash Rajasekaran 2021년 7월 19일
댓글: Kevin Akash Rajasekaran 2021년 7월 20일
Hey all! I have plotted a graph where I've made the background transparent. Now while saving the graph as a .png file, the transparency is not retained and shows as white instead. Is there a way to save the graph while retaining its transparency? Thanks in advance!
  댓글 수: 4
Jan
Jan 2021년 7월 20일
Try export_fig or catching the screen by getframe and define the 'TransparentColor' as the background color.
Kevin Akash Rajasekaran
Kevin Akash Rajasekaran 2021년 7월 20일
Thanks! I managed to get a transparent image by going to Edit -----> Copy figure.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by