保存するFigureのサイズの指定について

24 vues (au cours des 30 derniers jours)
GI
GI le 22 Mai 2018
Modifié(e) : mizuki le 24 Mai 2018
PaperPositionでFigureのサイズを指定して図を保存した際、あるサイズ以下で軸ラベルが見切れてしまうのですが、メインの図を小さくして軸ラベルが見切れないように図のサイズを設定、保存する方法はありますか?

Réponses (1)

mizuki
mizuki le 24 Mai 2018
Modifié(e) : mizuki le 24 Mai 2018
以下のような図になっているという認識で間違いありませんでしょうか。
h_f = figure;
h_plot = plot(rand(5,5), 'o');
h_ax = h_f.Children;
h_f.PaperPosition(3:4) = 0.1;
h_ax.Position(3:4) = 1;
以下のページの回答欄の図にもありますように、Figure の OuterPosition プロパティの中に axes の Position プロパティが入っています。そのため、PaperPosition のサイズは Position のサイズより大きい必要があります。axes の Position を調節してみてはいかがでしょうか。
  • 参考: Adjusting size of plot in Matlab so that graph does not get cut off by edge of plot window

Catégories

En savoir plus sur 印刷と保存 dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!