フィルターのクリア

eps printing of scatter3 plot shows odd results

1 回表示 (過去 30 日間)
Norris
Norris 2014 年 11 月 11 日
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 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by