How to improve the quality of 3d surfaces for publication purposes
    18 views (last 30 days)
  
       Show older comments
    
Hi guys,
I want to enhance the quality of 3d surfaces so that they can be displayed in a presentation or be published. I want to make these surfaces look more beautiful, modern, etc. etc. I currently have the below. Can you find ways to improve on this? Thank you.
%Setting a white background and clean font
set(0,'DefaultFigureColor','White','defaultaxesfontsize',8,'DefaultAxesFontname','Calibri','DefaultTextFontName','Calibri')
s1 = surf(peaks);
colormap(winter(256)) 
%Setting the axes label, type, position, rotation, etc.
xlabel('X Label', 'fontweight', 'bold')
ylabel('Y Label', 'fontweight', 'bold')
zlabel('Z Label', 'fontweight', 'bold')
view (135,15);
yh = get(gca,'YLabel'); % Handle of the y label
set(yh, 'Units', 'Normalized')
pos = get(yh, 'Position');
set(yh, 'Position',pos.*[0.85,0.6,1],'Rotation',-10.9)
xh = get(gca,'XLabel'); % Handle of the x label
set(xh, 'Units', 'Normalized')
pos = get(xh, 'Position');
set(xh, 'Position',pos.*[1,1,1],'Rotation',11.1)
zh = get(gca,'ZLabel'); % Handle of the z label
set(zh, 'Units', 'Normalized')
pos = get(zh, 'Position');
set(zh, 'Position',pos.*[1.5,1,0],'Rotation',90)
title('Surface Example', 'FontSize', 12, 'fontweight', 'bold')
%Enhancing the surface characteristics
axis tight
camlight
lighting phong
shading interp
set(s1,'edgecolor',[0 0 0.4],'meshstyle','both','linewidth',.15);
%Exporting as a high resolution png
export_fig Matlab_Sample.png -m3 -q101 -nocrop

0 Comments
Answers (1)
  Image Analyst
      
      
 on 3 Jan 2015
        Looks pretty darn good to me, but you might check out Waterloo that purports to give outstanding graphics: http://www.mathworks.com/matlabcentral/answers/56890-publication-quality-graphics-in-matlab
0 Comments
See Also
Categories
				Find more on Surface and Mesh Plots in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
