diff --git a/matlab/TCV_IMAS/plot_connection_matrices.m b/matlab/TCV_IMAS/plot_connection_matrices.m index 0d452f90fe356a52ca1739dc570c2b14ac843d64..d575d0480a8927fae3c2cb48f781c412e7d0ff07 100644 --- a/matlab/TCV_IMAS/plot_connection_matrices.m +++ b/matlab/TCV_IMAS/plot_connection_matrices.m @@ -44,6 +44,8 @@ for kk=1:info_pf_active.ntotcircuits xlab{index} = [addcolor info_pf_active.coil{ii}.name 'out']; end + xlab = strrep(xlab,'_','\_'); % since we need the tex interpreter for colors + shg axis ij ax = gca; @@ -51,6 +53,6 @@ for kk=1:info_pf_active.ntotcircuits xlabel('Element name. (red) Elemement belonging to circuit. (green) power supplies. (black) coils'); ylabel('Node'); title(['Circuit ' num2str(kk) ': ' info_pf_active.circuit{kk}.name]) - set(ax,'Xtick', xti, 'Ytick', yti, 'XTickLabel', xlab, 'YTickLabel', ylab') + set(ax,'Xtick', xti, 'Ytick', yti, 'XTickLabel', xlab, 'YTickLabel', ylab', 'XTickLabelRotation', 90) end