This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
scientificComputing/projects/project_onset_fi/solution/plotFICurve.m

16 lines
449 B
Matlab

function plotFICurve(fi, fi_std, contrasts, filename)
figure()
set(gcf, 'paperunits', 'centimeters', 'papersize', [10 10], ...
'paperposition', [0.0 0.0 10, 10], 'color', 'white')
errorbar(contrasts, fi, fi_std, 'o', 'displayname', 'onset response')
xlim([-20, 20])
ylim([0, 600])
xlabel('stimulus contrast [%]', 'fontsize', 11)
ylabel('firing rate [Hz]', 'fontsize', 11)
box('off')
if ~isempty(filename)
saveas(gcf, filename, 'pdf')
end