Exporting figure as eps VECTOR using print
2 次查看(过去 30 天)
显示 更早的评论
I have several pcolor plots combined in one figure. I try and export it as an eps vector file. If I use a coarse mesh or lesser number of figures, then the figure saves as a vector file with all fonts and formats preserved. However, increasing the mesh size or number of figures in the individual pcolor plots and saving as eps results in conversion of eps figure to raster format. This also does not preserve the fonts and formats. Can anyone help me with saving the file as a vector eps file. I tried using export_fig, but I am unable to specify the page width.
Here is my code: While the 9 panel figure gives good vector results, the 16 panel figure gives bad raster results.
clear all
close all
clc
F = 1;
figure(F)
for PlotLoop = 1:1:16
subplot(4,4,PlotLoop)
pcolor(rand(50))
shading flat
colorbar
end
FWidth = 7.00; % 2 columns
set(F,'PaperPosition',[0.1 0.1 FWidth FWidth*8.5/11.0])
print(F,'-depsc2','Test16');
F = F+1;
figure(F)
for PlotLoop = 1:1:9
subplot(3,3,PlotLoop)
pcolor(rand(50))
shading flat
colorbar
end
FWidth = 7.00; % 2 columns
set(F,'PaperPosition',[0.1 0.1 FWidth FWidth*8.5/11.0])
print(F,'-depsc2','Test9');
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colorbar 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!