eps printing of scatter3 plot shows odd results
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I am printing a bunch of 3d points (xyz) using scatter3 (rotated view) and I notice a big difference in how the final plot looks like depending on if the plot is saved as .tif or .eps
I realize one is raster and the other is vector and there will be slight differences in the final image.
What I didnt expect was how different. The only way I can describe the difference is that the tif seems to render the image taking into account my z values while the eps doesnt.
My question is, is there a way to get the eps to render my image so it looks like the tif?
I have attached pics, so you can see the difference.
EPS
TIF
The code I am using to generate the figures.
figure
scatter3(norm_pts(:,1),norm_pts(:,2),norm_pts(:,3),150,'.','CData',norm_pts(:,3)) %nomalized points
axis equal
h = colorbar
xlabel('X (m)')
ylabel('Y (m)')
zlabel('Relative Z (m)')
title('Filtered and normalized roughness elements')
grid on
view(19,45)
xlim([0, 1.5])
ylim([0, 4])
zlim([0, 0.3])
% print tif and eps
set(gcf,'units','normalized','outerposition',[0 0 1 1]) %full screen fig
print -dtiff -r600 'Figure_4_grayscale.tif'
print -deps -r600 'Figure_4_grayscale.eps'
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!