Skip to content
Snippets Groups Projects
Commit f0eb3ddc authored by Antoine Merle's avatar Antoine Merle
Browse files

Make labels more readable when plotting connection matrix.

parent 1d6fc3b6
Branches
Tags
1 merge request!40Ids tweaks
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment