How can I decrease the Gap between my 2 Subplots?

p_rgb = flip(p_r + p_g + p_b); % flip: Um Matrix zu "drehen"
P_rgb = reshape(p_rgb', m, n); % Leistungsmatrix [mW/cm^2]
P_rgb = fliplr(P_rgb)*A_pix_cm2*1e3 ; % Von [mW/cm^2] auf [uW]
subplot(1,2,1);
imshow(uint8(bild)); % Input Bild Plotten
breite = int2str(m); laenge = int2str(n);
word = append('Bild Input mit ', breite, ' x ', laenge, ' Grösse');
title(word)
subplot(1,2,2);
pcolor(P_rgb); % Bild mit Leistung/Pixel plotten [uW]
title('Bild (gespieglet) mit Pixel Leistungen codiert')
shading flat; % Entfernt des Gitter (Bild nicht mehr ueberdeckt)
yticks([]); xticks([]) % Löschen der Achsen-Gitter Beschriftungen
c = colorbar ; % Z - Achsenbeschriftung
c.Label.String = 'P [uW]';
c.Label.FontSize = 12;
colormap('parula'); % andere Plot Funktionen pcolor, imagesc, imshow

Tags

Asked:

on 30 May 2022

Answered:

on 3 Jun 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!