Figures not saving completely

11 ビュー (過去 30 日間)
David
David 2014 年 7 月 31 日
Hi,
I am using matlab 2014 student version on a linux machine and can't seem to save 2d images. The code below gives a simple example. The image plots fine in the figure window but when I try to save it either through the window menu or command line all I get is the axis.
data = rand(1024, 1024) ;
h = figure
pcolor(data)
shading interp
print('/home/davcra/Desktop/fk_filter/FIGURES/SYNTHETIC_TESTS/fk_30-330_before', '-dpng', '-r500')
saveas(h, '/home/davcra/Desktop/fk_filter/FIGURES/SYNTHETIC_TESTS/fk_30-330_before', 'jpg')
my system information is,
uname -a
Linux davcra-Lenovo-G570 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by