how to set the figure width
10 ビュー (過去 30 日間)
古いコメントを表示
I am trying to create a figure of width and height of 3 inches from an existing saved figure. How can I do this?
I would like to save this figure as a .png of the same size. Can I save this as png of this (3x3 inches) size.
I have also noticed that some parts of the labels disappears when saving it to .png. Why is this so? How do I prevent this?
Many thanks,
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 4 月 30 日
編集済み: Azzi Abdelmalek
2013 年 4 月 30 日
figure
set(gcf,'paperunits','inches')
set(gcf,'position',[0 0 3 3])
saveas(gcf,'fig1.png')
3 件のコメント
Azzi Abdelmalek
2013 年 4 月 30 日
編集済み: Azzi Abdelmalek
2013 年 4 月 30 日
name='fig_choice.png'
saveas(gcf,name)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Printing and Saving についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!