Hi,
I'm trying to increase the verticle size of my subplots, but I'm having no luck. Can someone please let me know where I've gone wrong.
My code is:
suplotTitle = {'0.4mA', '0.6mA', '0.8mA', '1.2mA', '1.6mA'}; f1=figure('position', [10, 10, 800, 1000]);for ii=1:5 subplot(6,2,2*ii-1); b1 = bar(conRR(2:end,1), conRR(2:end,ii+1)); b1.FaceColor = '#D95319'; b1.EdgeColor = 'none'; xticks(1:1:16); ylim([0 80]); title(suplotTitle{ii}) set(gca, 'FontSize', 10); box off if ii < 5 set(gca,'XTick', []); endendsubplot(6,2,5), ylabel('Respiratory Rate (BPM)')subplot(6,2,9), xlabel('Number of rats (N)')for ii=1:5 s2 = subplot(6,2,2*ii); b2 = bar(b9RR(2:end,1), b9RR(2:end,ii+1)); b2.FaceColor = '#0072BD'; b2.EdgeColor = 'none'; xticks(1:1:16); ylim([0 80]); title(suplotTitle{ii}) box off set(gca, 'FontSize', 10); if ii < 5 set(gca,'XTick', []); end endsubplot(6,2,6), ylabel('Respiratory Rate (BPM)');subplot(6,2,10), xlabel('Number of rats (N)');%Add legend
hL = subplot(6,2,[11,12]);poshL = get(hL,'position'); lgd = legend(hL,[b1,b2],'Control','Intervention');legend box off;set(lgd,'position',poshL,'Orientation','horizontal', 'FontSize', 12);axis(hL,'off'); % Turning its axis off
%Add main title
t = sgtitle('Respiratory Rate');t.FontSize = 15;t.FontWeight = 'bold';
At the moment my Figure looks like this:
Thanks in advance.
Best Answer