Epically broken:

%octave x = -10:0.1:10; plot (x, sin (x));

Works (thanks to Nils):

%octave figure(1,"visible","off"); x = -5:0.1:5; plot (x, sin (x)); saveas(1,"/tmp/octave-example.svg")

smc.file('/tmp/octave-example.svg')