How to save .fig Figure Background Color As Well As Saved Pict Format?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi, Community
I have a problem in saving my .fig file Matlab Format because when i try to save the graph from the opened .fig file, the background color Cannot be same as the background color of saved pict format result (.png, .jpg, etc). Here is the issue :
I want to save the histogram result from the above .fig file (with BLUE background) to the pict format, but the result is just like this :
But the result is always have No background... (White Color)...
How to fix this, everyone... Because im trying to search all of options in the .fig file toolbar or menu, and i still not found it.....
Thank you so much for the attention....
댓글 수: 6
Steven Lord
2022년 4월 5일
Use dot notation to change this property as shown in the example at the top of that page to which you linked.
h = plot(1:10);
% Find the figure handle
f = ancestor(h, 'figure');
% Or I could have used
% f = gcf;
f.Color = 'r';
채택된 답변
Jan
2022년 4월 5일
You can set this property during the creation of the figure:
figure('InvertHardcopy', 'off');
Or dynamically later:
set(gcf, 'InvertHardcopy', 'off');
In the print dialog of figures there have been a checkbox for this property also. Therefore I've asked, how you start this export.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!