EPS print loses background color

2 Ansichten (letzte 30 Tage)
cypher
cypher am 9 Aug. 2013
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

Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by