Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
MPIBR-vollrathf committed Oct 5, 2016
1 parent ac37fd8 commit 5f21040
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions alternativePlot.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
b = uicontrol('Parent',f,'Style','slider',...
'value',0, 'min',0, 'max', ceil(size(cell_sig_merged,2)/clusterSize),...
'SliderStep', [1 1]/(ceil(size(cell_sig_merged,2)/clusterSize)),'Callback', @redrawPlot);

align(b, 'center');

function redrawPlot(source,~)
val = round(source.Value);
Expand Down Expand Up @@ -235,9 +235,14 @@ function redrawPlot(source,~)

else

if val == ceil(size(cell_sig_merged,2)/clusterSize)
iStart = (val - 1) * clusterSize + 1;
iEnd = subPlotCols;
else
iStart = (val - 1) * clusterSize + 1;
iEnd = clusterSize * val;
end

iStart = (val - 1) * clusterSize + 1;
iEnd = clusterSize * val;
%plot package of clusterSize
tempImage = zeros(size(ica_segments, 2), size(ica_segments, 3), 3);

Expand Down
2 changes: 1 addition & 1 deletion main.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
sweepDuration = 10;

%number of time courses to show when slide bar is used
clusterSize = 5;
clusterSize = 10;

cell_sig_merged = alternativePlot(ica_segments, cluster, cell_sig, subPlotCols, sortedIdx, data_r, frames, fileNamesGreen, clusterSize, sweepDelay, sweepInterval, numberOfSweeps, sweepDuration);

Expand Down

0 comments on commit 5f21040

Please sign in to comment.