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');
Best Answer