Figures not saving completely
12 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!