A few improvements
This commit is contained in:
@@ -6,21 +6,21 @@ threshold = 20; % mV
|
||||
|
||||
figure()
|
||||
hold on
|
||||
plot(time, neuronal_data, 'color', [0.2 0.5 0.7], 'linewidth', 1., ...
|
||||
'displayname', 'membrane voltage')
|
||||
plot(spikes, ones(size(spikes)) .* threshold, 'ro', 'markersize', 5, ...
|
||||
'displayname', 'spike times')
|
||||
plot(time*1000.0, neuronal_data, 'color', [0.2 0.5 0.7], 'linewidth', 1., ...
|
||||
'displayname', 'Membrane voltage')
|
||||
plot(spikes*1000.0, ones(size(spikes)) .* threshold, 'r.', 'markersize', 15, ...
|
||||
'displayname', 'Spike times')
|
||||
line([time(1) time(end)], [threshold threshold], 'linestyle', '--', ...
|
||||
'linewidth', 0.75, 'color', [0.5 0.5 0.9], 'displayname', 'threshold')
|
||||
'linewidth', 0.75, 'color', [0.5 0.5 0.5], 'displayname', 'Threshold')
|
||||
|
||||
xlabel('time [s]', 'fontname', 'times', 'fontsize', 11)
|
||||
ylabel('potential [mV]', 'fontname', 'times', 'fontsize', 11)
|
||||
xlabel('Time [ms]', 'fontname', 'times', 'fontsize', 11)
|
||||
ylabel('Potential [mV]', 'fontname', 'times', 'fontsize', 11)
|
||||
title('ELL pyramidal neuron', 'fontname', 'times', 'fontsize', 12)
|
||||
ylim([0 35])
|
||||
xlim([0 2.25])
|
||||
ylim([0 40])
|
||||
xlim([500 1700])
|
||||
box('off')
|
||||
l = legend(gca,'show');
|
||||
set(l,'location','northwest', 'fontsize', 7, 'linewidth', 1.);
|
||||
set(l,'location','northeast', 'fontsize', 11, 'linewidth', 1.);
|
||||
set(gca, 'xminortick','on','yminortick','on')
|
||||
set(gca, 'tickdir','out', 'linewidth', 1.5, 'fontname', 'times', ...
|
||||
'fontsize', 11)
|
||||
|
||||
Reference in New Issue
Block a user