フィルターのクリア

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 Center および File ExchangeBrakes and Detents についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by