Skip to content

Commit 903e491

Browse files
committed
Merge conflict fix
2 parents 867af32 + 246dcea commit 903e491

1 file changed

Lines changed: 34 additions & 33 deletions

File tree

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
function [h_pan,h_zoom,h_cursor] = turnOffFigureSelection(h)
2-
% turnOffFigureSelection - Turn off zoom, pan and datacursor
3-
%
4-
% syntax: [h_pan,h_zoom,h_cursor] = turnOffFigureSelection(h)
5-
% h - structure holding references to GUI interface
6-
% h_pan - reference to pan object
7-
% h_zoom - reference to zoom buttons
8-
% h_cursor - reference to datacrusor object
9-
%
10-
11-
%--------------------------------------------------------------------------
12-
% This file is part of StatSTEM
13-
%
14-
% Copyright: 2016, EMAT, University of Antwerp
15-
% License: Open Source under GPLv3
16-
% Contact: sandra.vanaert@uantwerpen.be
17-
%--------------------------------------------------------------------------
18-
19-
v = version('-release');
20-
v = str2double(v(1:4));
21-
22-
% First turn off zoom, pan and datacursor
23-
h_pan = pan(h.fig);
24-
h_zoom = [h.zoom.in;h.zoom.out];
25-
h_cursor = datacursormode(h.fig);
26-
h_cursor.removeAllDataCursors();
27-
set(h_pan,'Enable','off')
28-
set(h_cursor,'Enable','off')
29-
30-
if v < 2019
31-
zoomAxinFig(h,'off')
32-
else
33-
h_z = zoom(h.fig);
34-
h_z.Enable = 'off';
2+
% turnOffFigureSelection - Turn off zoom, pan and datacursor
3+
%
4+
% syntax: [h_pan,h_zoom,h_cursor] = turnOffFigureSelection(h)
5+
% h - structure holding references to GUI interface
6+
% h_pan - reference to pan object
7+
% h_zoom - reference to zoom buttons
8+
% h_cursor - reference to datacrusor object
9+
%
10+
11+
%--------------------------------------------------------------------------
12+
% This file is part of StatSTEM
13+
%
14+
% Copyright: 2016, EMAT, University of Antwerp
15+
% License: Open Source under GPLv3
16+
% Contact: sandra.vanaert@uantwerpen.be
17+
%--------------------------------------------------------------------------
18+
19+
v = version('-release');
20+
v = str2double(v(1:4));
21+
22+
% First turn off zoom, pan and datacursor
23+
h_pan = pan(h.fig);
24+
h_zoom = [h.zoom.in;h.zoom.out];
25+
h_cursor = datacursormode(h.fig);
26+
h_cursor.removeAllDataCursors();
27+
set(h_pan,'Enable','off')
28+
set(h_cursor,'Enable','off')
29+
30+
if v < 2019
31+
zoomAxinFig(h,'off')
32+
else
33+
h_z = zoom(h.fig);
34+
h_z.Enable = 'off';
35+
end
3536
end

0 commit comments

Comments
 (0)