Figures not saving completely

12 次查看(过去 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 CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by