From 61465444caf314c5154559f68ec1cc41dfb154a4 Mon Sep 17 00:00:00 2001 From: Florian Vollrath Date: Sat, 8 Oct 2016 11:03:03 +0200 Subject: [PATCH] let numbers in plot stay on position --- functions/alternativePlot.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/alternativePlot.m b/functions/alternativePlot.m index 543d6f9..e38bcf8 100644 --- a/functions/alternativePlot.m +++ b/functions/alternativePlot.m @@ -153,7 +153,9 @@ function drawEverything(imageStart, imageEnd, plotStart, plotEnd) signal(i,:) = signal(i,:) + maximum; rgb = cm(round(64/subPlotCols * (i-1)+1),:); plot(signal(i,:), 'Color', rgb); - text(size(signal,2), maximum, num2str(i)) + %text(size(signal,2), maximum, num2str(i)) + + text(plotEnd, maximum, num2str(i)) %plot single components dotted for clusterIdx = cluster{i} cell_sigPlot(clusterIdx,:) = cell_sigPlot(clusterIdx,:) + maximum;