help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove White Border?


From: rs-232
Subject: Remove White Border?
Date: Sun, 10 Jan 2010 00:35:31 -0800 (PST)

Hi All,

I am trying to find a way to remove the white border around my plots when I
print them. I have seen some suggestions on the forum to access Gnuplot
directly from Octave using gset, but this returns an invalid command from
Gnuplot and Octave just interprets it as an undefined argument. 

Any ideas? I am including my code as folows.

Thanks!

-Joe

function y = fileSaver4()
        start = 0
        finish = 44100
        y = 0
        left = 0 
        right = 0
        
        for i = 1:2
                y = wavread ("mysound.wav", [start, finish]);
                left = y (:,1) +1  
                right = y (:,2) -1
        
                plot (left)
                hold
                plot (right)
                hold
 
                filename=sprintf("%02d.png",i);
                print (gcf, "-dpng", "-S10077,500", filename)
                
                start = (start + 44100)
                finish = (finish + 44100)
                y = 0
                left = 0 
                right = 0
                
        endfor

endfunction 
-- 
View this message in context: 
http://old.nabble.com/Remove-White-Border--tp27096388p27096388.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]