Skip to content

Commit

Permalink
dynamic histogram plots
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie-Fabre committed Oct 13, 2024
1 parent 46d9225 commit 951cced
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions +bc/+viz/unitQualityGUI_synced.m
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function initializePlot(unitQualityGuiHandle, ephysData, qMetric, unitType, uniq
hold on;
spDecayPoints = scatter(NaN, NaN, 'black', 'filled');
spDecayFit = plot(NaN, NaN, 'Color', prettify_rgb('FireBrick'), 'LineWidth', 2);
spDecayLegend = legend(spDecayFit, {''});
spDecayLegend = legend(spDecayFit, {''}, 'Location', 'best');
spDecayTitle = title('');
ylabel('ampli. (a.u.)');
%xlabel('distance');
Expand All @@ -329,7 +329,7 @@ function initializePlot(unitQualityGuiHandle, ephysData, qMetric, unitType, uniq
xlabel('time (ms)');
ylabel('sp/s');
acgTitle = title('');
acgLegend = legend(acgBar, {''});
acgLegend = legend(acgBar, {''}, 'Location', 'best');
%% initialize ISI

% if plotRaw && param.computeDistanceMetrics
Expand Down Expand Up @@ -399,7 +399,7 @@ function initializePlot(unitQualityGuiHandle, ephysData, qMetric, unitType, uniq
ylabel('Firing rate (sp/sec)');

ampliTitle = title('');
ampliLegend = legend([tempAmpli, rpvAmpli, ampliLine ], {'', '', ''});
ampliLegend = legend([tempAmpli, rpvAmpli, ampliLine ], {'', '', ''}, 'Location', 'best');

%% initialize amplitude fit
ampliFitAx = subplot(6, 13, [65,78]);
Expand All @@ -408,7 +408,7 @@ function initializePlot(unitQualityGuiHandle, ephysData, qMetric, unitType, uniq
ampliBins.FaceAlpha = 0.5;
ampliFit = plot(NaN, NaN, 'Color', prettify_rgb('Orange'), 'LineWidth', 2);
ampliFitTitle = title('');
ampliFitLegend = legend(ampliFit, {''}, 'Location', 'South');
ampliFitLegend = legend(ampliFit, {''}, 'Location', 'best');

%% save all handles

Expand Down Expand Up @@ -501,7 +501,7 @@ function updateUnit(unitQualityGuiHandle, memMapData, ephysData, rawWaveforms, i
' (phy ID #: ' num2str(thisUnit-1) '; qMetric row #: ' num2str(iCluster) '), single unit'], 'Color', [0, .5, 0]);
elseif unitType(iCluster) == 0
set(guiData.mainTitle, 'String', ['Unit ID #', num2str(thisUnit), ...
' (phy ID #: ' num2str(thisUnit-1) '; qMetric row #: ' num2str(iCluster) '), noise'], 'Color', [1.0000, 0.5469, 0]);
' (phy ID #: ' num2str(thisUnit-1) '; qMetric row #: ' num2str(iCluster) '), noise'], 'Color', [1.0000, 0, 0]);
elseif unitType(iCluster) == 2
set(guiData.mainTitle, 'String', ['Unit ID #', num2str(thisUnit), ...
' (phy ID #: ' num2str(thisUnit-1) '; qMetric row #: ' num2str(iCluster) '), multi-unit'], 'Color', [1.0000, 0.5469, 0]);
Expand Down

0 comments on commit 951cced

Please sign in to comment.