SCATTERHIST を SUBPLOT として描く方法はありますか?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
以下のようなコードで SCATTERHIST に SUBPLOT を適用したいと考えています。
subplot(2,1,1);
x = randn(1000,1);
y = exp(.5*randn(1000,1));
scatterhist(x,y)
subplot(2,1,2)
line
しかし、SCATTERHIST は SUBPLOT のサイズでは表示されず、次の SUBPLOT が描かれると消えてしまいます。
Réponse acceptée
MathWorks Support Team
le 1 Juil 2013
SCATTERHIST で SUBPLOT を使用する機能は提供されていません。
回避策として、UIPANEL の POSITION オプションを使用して SCATTERPLOT の軸を指定した場所に置いてください。
load carsmall
a = scatterhist(Weight, MPG);
% subplot(2,2,4) の箇所、2x2分割での右下にグラフを表示
u = uipanel('position',[.5 0 .5 .5])
set(a,'parent',u)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 離散データ プロット dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!