smoothing graph line in Matlab -
i have following graph , make more pleasing eyes smoothing graph. possible ?
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.
try
th = plot( tempyr', temperature', '-o', 'marker', '.','linesmoothing','on');
and have here, export_fig reference might prove useful.
Comments
Post a Comment