How can I decrease the Gap between my 2 Subplots?

2 visualizaciones (últimos 30 días)
Ajadin Nuredini
Ajadin Nuredini el 30 de Mayo de 2022
Respondida: Biral Pradhan el 3 de Jun. de 2022
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

Respuestas (1)

Biral Pradhan
Biral Pradhan el 3 de Jun. de 2022
I understand, you are generating two subplots and want to decrease the spacing between them. Kindly follow the following links to resolve the issue.

Etiquetas

Community Treasure Hunt

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

Start Hunting!