필터 지우기
필터 지우기

Export a figure with subplots keeping the background color of the subplots

조회 수: 6 (최근 30일)
Ronny
Ronny 2017년 3월 21일
편집: Dino Dvorak 2021년 11월 30일
Hi
I have the following problem: I make figures with subplots where the subplots have a non-white background color. However when I want to export these figures to eps the background of the subplots becomes white. I know that the command set(gcf, 'InvertHardCopy', 'off'); exists. However this only preserves the color (grey) of the area surrounding the subplots but not actually the background of the subplots. Does anyone have an idea how to solve this problem?
Cheers, Ronny

답변 (1개)

Jan
Jan 2017년 3월 21일
  댓글 수: 7
Ronny
Ronny 2017년 3월 22일
편집: Ronny 2017년 3월 22일
About your first suggestion: This is what I tried first. However this only preserves the background color of the figure (containing the subplots) but not the one of the subplots. For the second one I can't find the Copy options unfortunately. Maybe this changed lately.
I attached a picture to make my problem more clear.
Dino Dvorak
Dino Dvorak 2021년 11월 30일
편집: Dino Dvorak 2021년 11월 30일
Older post but anyway - in Export Setup - Rendering - uncheck the box Custom color (default setting: w)

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

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by