Printing EPS fails to print color only in colorbar.

1 view (last 30 days)
Hi all,
I'd like to print a .eps image, but the color in the colorbar fails to print (-depsc2), or is a smoothed gradation of the 10 colors in the colormap (-deps). The zbuffer driver correctly prints the colorbar, but results in files that are too large for my application. Code, version info, and images below (zip file because eps format not supported for upload).
--Luke
map = flipud([0, 0 , 0
90, 0, 0
190,0,0
255,20,10
250,128,114
255,160,40
255,215,0
240,230,140
160, 160, 160
210, 210, 210]);
map = map./255;
figure;
colorbar;
set(gca,'Visible','off');
colormap(map);
print ( '-depsc' , '-r512', '-painters',[ 'P_epsc.eps']);
print ( '-depsc2' , '-r512', '-painters',[ 'P_epsc2.eps']);
print ( '-depsc2' , '-r512', '-zbuffer',[ 'P_epsc_zbuffer.eps']);
version info: MATLAB Version: 8.0.0.783 (R2012b)
Operating System: Mac OS X Version: 10.10.2 Build: 14C109
Java Version: Java 1.6.0_65-b14-466.1-11M4716 with Apple Inc. Java HotSpot™
64-Bit Server VM mixed mode

Answers (0)

Community Treasure Hunt

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

Start Hunting!