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 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