Verified Commit b0d5eadd authored by Johannes Pfeifer 's avatar Johannes Pfeifer Committed by Sébastien Villemot

GSA scatter plots: Correctly pass LaTeX-names to figure

(manually cherry picked from commit 30361ccb)
parent d613d11b
Pipeline #326 passed with stages
in 71 minutes and 4 seconds
......@@ -34,6 +34,8 @@ if DynareOptions.TeX
else
param_names_tex = options_mcf.param_names_tex;
end
else
param_names_tex = char(strrep(cellstr(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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment