diff --git a/plotting/code/automatic_plot.m b/plotting/code/automatic_plot.m index 8056c64..f396d24 100644 --- a/plotting/code/automatic_plot.m +++ b/plotting/code/automatic_plot.m @@ -13,18 +13,18 @@ plot(spikes, ones(size(spikes)) .* threshold, 'ro', 'markersize', 5, ... line([time(1) time(end)], [threshold threshold], 'linestyle', '--', ... 'linewidth', 0.75, 'color', [0.5 0.5 0.9], 'displayname', 'threshold') -xlabel('time [s]', 'fontname', 'Times', 'fontsize', 11) -ylabel('potential [mV]', 'fontname', 'Times', 'fontsize', 11) -title('ELL pyramidal neuron', 'fontname', 'Times', 'fontsize', 12) +xlabel('time [s]', '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]) box('off') l = legend(gca,'show'); -set(l,'Location','northwest', 'Fontsize', 7, 'LineWidth', 1.); -set(gca, 'XMinorTick','on','yMinorTick','on') -set(gca, 'TickDir','out', 'linewidth', 1.5, 'fontname', 'Times', ... +set(l,'location','northwest', 'fontsize', 7, 'linewidth', 1.); +set(gca, 'xminortick','on','yminortick','on') +set(gca, 'tickdir','out', 'linewidth', 1.5, 'fontname', 'times', ... 'fontsize', 11) -set(gcf, 'PaperUnits', 'centimeters', 'PaperSize', [15 7.5]); -set(gcf, 'PaperPosition',[0.0 0.0 15, 7.5], 'Color', 'white') +set(gcf, 'paperunits', 'centimeters', 'papersize', [15 7.5]); +set(gcf, 'paperposition',[0.0 0.0 15, 7.5], 'color', 'white') -saveas(gcf, [pwd '/../lecture/images/spike_detection.pdf'], 'pdf') \ No newline at end of file +saveas(gcf, [pwd '/../lecture/images/spike_detection.pdf'], 'pdf') diff --git a/plotting/lecture/images/spike_detection.pdf b/plotting/lecture/images/spike_detection.pdf index 96f40d0..e1f9ad4 100644 Binary files a/plotting/lecture/images/spike_detection.pdf and b/plotting/lecture/images/spike_detection.pdf differ