We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c81ac commit 49e58a1Copy full SHA for 49e58a1
UI/TDVFigureWindow.m
@@ -54,18 +54,12 @@ function addData(h, fd)
54
hDataMenu = uimenu('Label', 'Data');
55
56
hDataShowAsMenu = uimenu(hDataMenu, 'Label', 'Show As');
57
- uimenu(hDataShowAsMenu ...
58
- , 'Label', 'F,d Plot' ...
59
- , 'Callback', @(h,e) TDVFigureWindow.switchDisplay(hFig, 'fd') ...
60
- );
61
62
- , 'Label', 'F,t Plot' ...
63
- , 'Callback', @(h,e) TDVFigureWindow.switchDisplay(hFig, 'ft') ...
64
65
66
- , 'Label', 'd,t Plot' ...
67
- , 'Callback', @(h,e) TDVFigureWindow.switchDisplay(hFig, 'dt') ...
68
+ for item = {{'F,d', 'fd'}, {'F,t', 'ft'}, {'d,t', 'dt'}}
+ uimenu(hDataShowAsMenu ...
+ , 'Label', sprintf('%s Plot', item{1}{1}) ...
+ , 'Callback', @(h,e) TDVFigureWindow.switchDisplay(hFig, item{1}{2}) ...
+ );
+ end
69
70
uimenu(hDataMenu ...
71
, 'Label', 'Duplicate to New Window' ...
0 commit comments