Problem with printing a colormap

3 views (last 30 days)
Sarah Hughes
Sarah Hughes on 5 May 2013
I have a specific problem that occurs after printing. I create a figure (anything will do) with a colorbar. Then I export the figure as an 'eps' file using the renderer 'painters'.
The image looks fine, and I import it into Latex, converting it eventually into a pdf document. Looking at the screen, all is well BUT when the figure is printed a small error occurs in the colobar, the colors are offset.
This problem does NOT occur if I used 'opengl' or 'zbuffer'. However this is not a solution as these renderers make files that are way too large to handle. I have more than 100 image files in my PhD thesis.
The error doesn't occur if I use other software to view or convert to pdf. For example Adobe Illustrator or Ghostview. But it ALWAYS happens if I use 'painters' and the latex-pdf option.
As the problem only happens on printing (it all looks fine on the screen), I have taken a photo of the printouts on my phone. From the images you can see here that I am just plotting the matlab peaks function, so the error is nothing to do with my data. Here for example is some code. I use exportfig to save as 'eps' but you could just manually export - choosing the renderer as 'painters'.
[X,Y,Z] = peaks(30);
surfc(X,Y,Z)
axis([-3 3 -3 3 -10 5])
cmap=colormap(hsv(14))
colormap cmap
set(gca,'clim',[-6 8])
colorbar
exportfig(gcf,['test4_exportfig.eps'],...
'Format','eps',...
'Linemode','scaled',...
'Fontmode','fixed','Fontsize',11,'Fontencoding','latin1',...
'Resolution',600,'Color','cmyk','Renderer','painters')
Can anyone replicate this? Anyone know how I go about solving this... Could it be graphics driver? printer driver? matlab bug? Any ideas???
UPDATE: Here is the figure in a pdf created by someone else in a different version of MATLAB. This figure looks OK but the colorbar changes when I print it - can anyone else replicate this, or help me understand if it is a printer setting?<https://dl.dropboxusercontent.com/u/27090669/test.pdf>

Answers (0)

Categories

Find more on Color and Styling in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!