Why does my white text become black in my figure when printing to an EMF file in MATLAB 7.5 (R2007b)?
17 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Commented: TADA
on 26 Aug 2021
After running the following code
openfig test % test is a saved figure
print('test.emf','-dmeta')
my white text becomes black in my EMF file
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This is an expected behavior. This result is affected by the 'inverthardcopy' property. By default the figure's 'inverthardcopy' property is turned on. Turning this off will address the issue.
set(gcf, 'InvertHardCopy', 'off');
1 Comment
TADA
on 26 Aug 2021
set the white background yourself
set(gcf, 'InvertHardCopy', 'off');
set(gcf, 'Color', 'w');
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!