EPS print loses background color

2 visualizaciones (últimos 30 días)
cypher
cypher el 9 de Ag. de 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

Respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by