eps printing of scatter3 plot shows odd results
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Printing and Saving finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!