EPS print loses background color

2 visualizzazioni (ultimi 30 giorni)
cypher
cypher il 9 Ago 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

Risposte (0)

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by