How can i determine the size of each diagram in my subplot?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Philipp Mueller
le 6 Sep 2016
Modifié(e) : Image Analyst
le 6 Sep 2016
Hello,
How can i determine the size of each diagram in my subplot? And in addition to this how can i define the whole window size in cm? I hope you understand my question. I am desperate, I dont find a solution. They output window should have a certain size. How can i do this? Sorry for my English. Thank you in advance.
figure;
subplot(3,1,1);
V = [0,0;1,0;1,1;0,1;5,5;10,5;10,10;5,10;2,2;4,2;4,4;2,4];
length_V=size(V)
F = [1,2,3,4;5,6,7,8;9,10,11,12];%Dieser Vektor sagt mir in welcher Reihenfolge die Punkte
% zu einander verbunden werden müssen. In diesem Fall wird die linke untere
% Ecke mit der rechten unteren Ecke mit der rechten oberen Ecke und linken
% oberen Ecke verbunden.
C = [50;24;99]; %Hier erwarte ich mir die Häufigkeit/Anzahl
patch('Faces',F,'Vertices',V,'FaceVertexCData',C,'FaceColor','flat','EdgeColor','none') %Befehl fürs "zeichnen"
colormap(parula)%den Colorbar kann man spezifisch einstellen (Farbspektrum), hot, cool, copper, pink, bone siehe help hsv
colorbar
%test_data=gca;
caxis([0,100]) % setzt die color limits
title('Rainflow Chart');
xlabel('X-Range');
ylabel('Class Width');
legend('Legend is possible');
subplot(3,1,2);
patch('Faces',F,'Vertices',V,'FaceVertexCData',C,'FaceColor','flat','EdgeColor','none')
colormap(parula)
colorbar
caxis([0,100]) % setzt die color limits
title('Rainflow Chart');
xlabel('X-Range');
ylabel('Class Width');
legend('Legend is possible');
subplot(3,1,3);
patch('Faces',F,'Vertices',V,'FaceVertexCData',C,'FaceColor','flat','EdgeColor','none')
colormap(parula)
colorbar
caxis([0,100]) % setzt die color limits
title('Rainflow Chart');
xlabel('X-Range');
ylabel('Class Width');
legend('Legend is possible');
0 commentaires
Réponse acceptée
Image Analyst
le 6 Sep 2016
Modifié(e) : Image Analyst
le 6 Sep 2016
To determine what it current is :
h = subplot(..................
axesSize = h.Position
It will be [left, top, width, height]
To set it to some specific size, assign those variables (x, y, width, and height) and do
h.Position = [x, y, width, height];
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Brakes and Detents dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!