Skip to content
Snippets Groups Projects
Commit 30361ccb authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

GSA scatter plots: Correctly pass LaTeX-names to figure

parent 02291357
Branches
Tags
1 merge request!1631Fixes to GSA plots
......@@ -34,6 +34,8 @@ if DynareOptions.TeX
else
param_names_tex = options_mcf.param_names_tex;
end
else
param_names_tex = strrep(options_mcf.param_names,'_','\_');
end
amcf_name = options_mcf.amcf_name;
amcf_title = options_mcf.amcf_title;
......@@ -78,7 +80,7 @@ if ~isempty(indmcf) && ~DynareOptions.nograph
skipline()
xx=[];
if ~ isempty(xparam1), xx=xparam1(indmcf); end
scatter_mcf(lpmat(ibeha,indmcf),lpmat(inobeha,indmcf), param_names(indmcf), ...
scatter_mcf(lpmat(ibeha,indmcf),lpmat(inobeha,indmcf), param_names_tex(indmcf), ...
'.', [fname_,'_',amcf_name], OutputDirectoryName, amcf_title,xx, DynareOptions, ...
beha_title, nobeha_title)
end
......@@ -143,7 +143,7 @@ for i = 1:p
end
if i==1
if nflag == 1
ylabel(vnames(j,:),'Rotation',45,'interpreter','none', ...
ylabel(vnames(j,:),'Rotation',45, ...
'HorizontalAlignment','right','VerticalAlignment','middle');
else
ylabel([num2str(j),' '],'Rotation',90)
......@@ -151,7 +151,7 @@ for i = 1:p
end
if j==1
if nflag == 1
title(vnames(i,:),'interpreter','none','Rotation',45, ...
title(vnames(i,:),'Rotation',45, ...
'HorizontalAlignment','left','VerticalAlignment','bottom')
else
title(num2str(i))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment