Skip to content

Commit

Permalink
Image acquisition: Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrediquette committed Oct 22, 2021
1 parent f0f416e commit c990892
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
10 changes: 9 additions & 1 deletion PIVlab_capture_resources/PIVlab_capture_pco.m
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@
if isvalid(image_handle_pco)
hist_fig=findobj('tag','hist_fig');
if isempty(hist_fig)
hist_fig=figure('numbertitle','off','MenuBar','none','DockControls','off','Name','Live histogram','Toolbar','none','tag','hist_fig');
hist_fig=figure('numbertitle','off','MenuBar','none','DockControls','off','Name','Live histogram','Toolbar','none','tag','hist_fig','CloseRequestFcn', @HistWindow_CloseRequestFcn);
end
if ~exist ('old_hist_y_limits','var')
old_hist_y_limits =[0 35000];
Expand Down Expand Up @@ -840,3 +840,11 @@
end
end

function HistWindow_CloseRequestFcn(hObject,~)
hgui=getappdata(0,'hgui');
setappdata(hgui,'hist_enabled',0);
try
delete(hObject);
catch
delete(gcf);
end
Binary file modified PIVlab_settings_default.mat
Binary file not shown.

This file was deleted.

This file was deleted.

0 comments on commit c990892

Please sign in to comment.