How can i determine the size of each diagram in my subplot?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Philipp Mueller
am 6 Sep. 2016
Bearbeitet: Image Analyst
am 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 Kommentare
Akzeptierte Antwort
Image Analyst
am 6 Sep. 2016
Bearbeitet: Image Analyst
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Discrete Data Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!