Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
matlab-gui
Commits
75c998c2
Commit
75c998c2
authored
Sep 17, 2020
by
Dóra Kocsis
Browse files
add nograph tick box in shock decomposition tabs, closes
Dynare/matlab-gui#15
parent
b2ef8d27
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/gui_realtime_shock_decomposition.m
View file @
75c998c2
...
...
@@ -269,6 +269,15 @@ handles.pushbuttonClose = uicontrol( ...
'Position'
,
[
spc
*
3
+
dwidth
*
1.5
top
-
num
*
dheight
dwidth
*
2
dheight
/
2
],
...
'String'
,
{
'qoq'
,
'yoy'
,
'aoa'
},
...
'Value'
,
1
);
num
=
num
+
1.5
;
handles
.
noGraph
=
uicontrol
(
...
'Parent'
,
handles
.
uipanelResults
,
...
'Style'
,
'checkbox'
,
...
'Units'
,
'normalized'
,
...
'Position'
,
[
spc
top
-
num
*
dheight
1
-
spc
*
4
dheight
/
2
],
...
'String'
,
'Only compute shock decomposition, do not plot'
,
...
'FontWeight'
,
'bold'
);
end
function
pushbuttonShockDecomposition_Callback
(
hObject
,
~
)
...
...
@@ -300,6 +309,8 @@ handles.pushbuttonClose = uicontrol( ...
options_
.
nodisplay
=
0
;
options_
.
plot_priors
=
0
;
options_
.
type
=
handles
.
type
.
String
;
options_
.
no_graph
.
shock_decomposition
=
handles
.
noGraph
.
Value
;
gui_tools
.
project_log_entry
(
'Running shock decomposition'
,
'...'
);
[
jObj
,
guiObj
]
=
gui_tools
.
create_animated_screen
(
'Running shock decomposition, please wait...'
,
tabId
);
var_list_
=
handles
.
endoTable
.
Data
([
handles
.
endoTable
.
Data
{:,
1
}],
2
);
...
...
@@ -394,6 +405,7 @@ handles.pushbuttonClose = uicontrol( ...
handles
.
lastPeriodYear
.
Value
=
handles
.
lastPeriodYearDefault
;
handles
.
useShockGrouping
.
Value
=
0
;
handles
.
type
.
Value
=
1
;
handles
.
noGraph
=
0
;
end
function
close_tab
(
~
,
~
,
hTab
)
...
...
src/gui_shock_decomposition.m
View file @
75c998c2
...
...
@@ -247,6 +247,15 @@ handles.pushbuttonClose = uicontrol( ...
'Position'
,
[
spc
*
3
+
dwidth
*
1.5
top
-
num
*
dheight
dwidth
*
2
dheight
/
2
],
...
'String'
,
{
'qoq'
,
'yoy'
,
'aoa'
},
...
'Value'
,
1
);
num
=
num
+
1.5
;
handles
.
noGraph
=
uicontrol
(
...
'Parent'
,
handles
.
uipanelResults
,
...
'Style'
,
'checkbox'
,
...
'Units'
,
'normalized'
,
...
'Position'
,
[
spc
top
-
num
*
dheight
1
-
spc
*
4
dheight
/
2
],
...
'String'
,
'Only compute shock decomposition, do not plot'
,
...
'FontWeight'
,
'bold'
);
end
function
pushbuttonShockDecomposition_Callback
(
hObject
,
~
)
...
...
@@ -305,6 +314,7 @@ handles.pushbuttonClose = uicontrol( ...
options_
.
model_settings
.
shocks
=
model_settings
.
shocks
;
options_
.
shock_grouping
=
handles
.
useShockGrouping
.
Value
;
options_
.
shock_decomp
.
init_state
=
handles
.
useInitState
.
Value
;
options_
.
no_graph
.
shock_decomposition
=
handles
.
noGraph
.
Value
;
oo_
=
shock_decomposition
(
M_
,
oo_
,
options_
,
var_list_
,
bayestopt_
,
estim_params_
);
end
jObj
.
stop
;
...
...
@@ -370,6 +380,7 @@ handles.pushbuttonClose = uicontrol( ...
handles
.
useShockGrouping
.
Value
=
0
;
handles
.
useInitState
.
Value
=
0
;
handles
.
type
.
Value
=
1
;
handles
.
noGraph
=
0
;
end
function
close_tab
(
~
,
~
,
hTab
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment