필터 지우기
필터 지우기

How can i determine the size of each diagram in my subplot?

조회 수: 5 (최근 30일)
Philipp Mueller
Philipp Mueller 2016년 9월 6일
편집: Image Analyst 2016년 9월 6일
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');

채택된 답변

Image Analyst
Image Analyst 2016년 9월 6일
편집: Image Analyst 2016년 9월 6일
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개)

카테고리

Help CenterFile Exchange에서 Brakes and Detents에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by