Figures not saving completely

11 visualizzazioni (ultimi 30 giorni)
David
David il 31 Lug 2014
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

Risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by