Better font for S-curve graph

This commit is contained in:
ha7ilm 2017-04-29 11:43:54 +02:00
parent 57790eb9af
commit e426ef65d1

View file

@ -23,16 +23,28 @@ function output=shrunf(cmd)
end end
function error_value=run_tr(skip) function error_value=run_tr(skip)
out_vect=shrunf(sprintf('dd bs=8 skip=%d if=grc_tests/bpsk31_baseband_sample_complex_8000_sps_010101.raw | csdr timing_recovery_cc EARLYLATE 256 --add_q --output_error',skip)); out_vect=shrunf(sprintf('dd bs=8 skip=%d if=bpsk31_baseband_sample_complex_8000_sps_010101.raw | csdr timing_recovery_cc EARLYLATE 256 --add_q --output_error',skip));
error_value=out_vect(2); error_value=out_vect(2);
end end
skips=0:400 skips=0:256;
error_values=[] error_values=[]
for skip=skips for skip=skips
error_values=[error_values run_tr(skip)]; error_values=[error_values run_tr(skip)];
end end
error_values error_values
plot(skips, error_values);
%graphics_toolkit("gnuplot")
h=figure(1);
plot(skips, error_values, 'linewidth', 2);
xlabel('Phase offset in number of samples');
ylabel('Error value (TED output)');
FN = findall(h,'-property','FontName');
set(FN,'FontName','/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed.ttf');
set(FN,'FontName','times');
FS = findall(h,'-property','FontSize');
set(FS,'FontSize',18);
pause pause