Skip to content
Snippets Groups Projects
Verified Commit 1bd08bd0 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

plot_shock_decomposition: support shock_groups

parent d2401d14
Branches
No related tags found
No related merge requests found
...@@ -405,12 +405,26 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -405,12 +405,26 @@ handles.pushbuttonClose = uicontrol( ...
'Value', 0); 'Value', 0);
num = num + 1; num = num + 1;
uicontrol( ...
'Parent', handles.uipanelResults, ...
'Tag', 'use_shock_groups', ...
'Style', 'text', ...
'Units', 'normalized', ...
'Position', [spc*3 top-num*dheight dwidth*1.5 dheight/2], ...
'String', 'use_shock_groups:', ...
'HorizontalAlignment', 'left');
shock_group_options = {''};
if isfield(M_, 'shock_groups')
shock_group_options = [shock_group_options; fieldnames(M_.shock_groups)];
end
handles.use_shock_groups = uicontrol( ... handles.use_shock_groups = uicontrol( ...
'Parent', handles.uipanelResults, ... 'Parent', handles.uipanelResults, ...
'Style', 'checkbox',... 'Tag', 'use_shock_groups', ...
'Style', 'popupmenu', ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [spc top-num*dheight 1-spc*4 dheight/2], ... 'Position', [spc*3+dwidth*1.5 top-num*dheight dwidth*2 dheight/2], ...
'String', 'use_shock_groups'); 'String', shock_group_options);
end end
function pushbuttonPlotShockDecomposition_Callback(hObject, ~) function pushbuttonPlotShockDecomposition_Callback(hObject, ~)
...@@ -498,6 +512,7 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -498,6 +512,7 @@ handles.pushbuttonClose = uicontrol( ...
options_.plot_shock_decomp.write_xls = true; options_.plot_shock_decomp.write_xls = true;
end end
options_.plot_shock_decomp.use_shock_groups = handles.use_shock_groups.String{handles.use_shock_groups.Value};
options_.plot_shock_decomp.realtime = handles.realtime.Value - 1; options_.plot_shock_decomp.realtime = handles.realtime.Value - 1;
gui_tools.project_log_entry('Running plot shock decomposition', '...'); gui_tools.project_log_entry('Running plot shock decomposition', '...');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment