help-octave
[Top][All Lists]
Advanced

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

Re: Print plots without GUI


From: malleor
Subject: Re: Print plots without GUI
Date: Tue, 17 Jan 2012 07:02:51 -0800 (PST)

Jaroslav Hajek-2 wrote
> 
> figure (1, "visible", false);
> plot (1:10, 1:10);
> print myplot.eps
> 
> works for me (3.3.50+).
> 

Dear Jaroslav, 

Sadly, this code crashes my Octave 3.4.3 (latest stable). 

octave:1> figure (1, "visible", false);
octave:2> gcf
ans =  1
octave:3> plot (1:10, 1:10);
panic: Segmentation violation -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
warning: get: allowing currentfigure to match root property currentfigure
error: get: unknown property "currentfigure"
error: evaluating argument list element number 1
error: called from:
error:  
C:\Octave\Octave3.4.3_gcc4.5.2\Octave3.4.3_gcc4.5.2\share\octave\3.4.3\
m\plot\close.m at line 74, column 3
error:  
C:\Octave\Octave3.4.3_gcc4.5.2\Octave3.4.3_gcc4.5.2\share\octave\3.4.3\
m\plot\close.m at line 57, column 5
error:  
C:\Octave\Octave3.4.3_gcc4.5.2\Octave3.4.3_gcc4.5.2\share\octave\3.4.3\
m\plot\__go_close_all__.m at line 27, column 3

It happens only when the figure 1 has never been visible -- the following
code works. 

octave:1> figure (1, "visible", false);
octave:2> plot (1:10, 1:10);

This is clearly a bug and I'm about to try solving it. Maybe one of you
Octave guys wishes to do it also. Or maybe it's solved in next dev versions? 

Regards, 
malleor

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Re-Print-plots-without-GUI-tp1605857p4303562.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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