EPS print loses background color

조회 수: 2 (최근 30일)
cypher
cypher 2013년 8월 9일
I am trying to automatically generate and export a large number of eps files, but matlab loses the background color. Due to the large number of files, exporting manually is not an option.
How can I keep the background color when exporting an EPS file?
to simplify, I tried something like this:
reset(0); % clean up
colordef black % set colordef
h = figure('Color',[0 0 0]); % create image, black background
x = rand(1,100); % define x
y = rand(1,100); % define y
c = rand(1,100); % define color coding
scatter(x,y,[],z); % plot them
xlabel('x'); % label x-axis
ylabel('y'); % label y-axis
title('title'); % title
legend('legend'); % legend
print(h,'example.eps','-depsc2') % print to file

답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by