smoothing graph line in Matlab -


i have following graph , make more pleasing eyes smoothing graph. possible ?

enter image description here

tempyr = 1880:1:2014;   temperature = temp(1:2, 1:135); tempval = {'annual mean','5 year mean'} th = zeros(size(tempval)); hold on th = plot( tempyr', temperature', '-o', 'marker', '.'); xlabel( 'year', 'fontsize', 24); ylabel( 'temperature anomaly (degree cel)', 'fontsize', 24 ); legend(th, tempval) grid on 

ideal graph. enter image description here

try

th = plot( tempyr', temperature', '-o', 'marker', '.','linesmoothing','on'); 

and have here, export_fig reference might prove useful.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -