Problem with printing a colormap
3 次查看(过去 30 天)
显示 更早的评论
https://dl.dropboxusercontent.com/u/27090669/imageofcorrectplot.jpg https://dl.dropboxusercontent.com/u/27090669/imageshowingerror.jpg


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>
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Color and Styling 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!