eps printing of scatter3 plot shows odd results
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146064/image.png)
TIF
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146065/image.png)
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Printing and Saving en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!