colorbar eastoutside vs westoutside

Ich habe mit @ zwei Farbbalken in dasselbe Bild eingefügdieser Beitrag beim Dateiaustausch.

Die Position des ersten Farbbalkens wird festgelegt durch:

colorbar('WestOutside')

die Position des zweiten von:

colorbar('EastOutside')

Weiß jemand, warum der erste länger ist?

Beim Betrachten desMatlab Dokumentation es schien mir, dass sie gleich sein sollten. Was vermisse ich

Das Grundgerüst des Codes lautet wie folgt:

%define coordinates of the nodes
theta=linspace(0,2*pi,33);
[x,y]=pol2cart(theta,1);

%define colormap of the links
cm = winter;
colormap(cm);

%plot the links
for ii=1:N
quiver(...)
end

%place the first colorbar
hcb=colorbar('EastOutside');

%freeze the first colorbar
cbfreeze(hcb);


%define the second colormap
cm = autumn;
colormap(cm);

%plot the dots
for ii=1:N
plot(...)
end

%place the second colorbar
hb=colorbar('EastOutside');

Antworten auf die Frage(2)

Ihre Antwort auf die Frage