help-octave
[Top][All Lists]
Advanced

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

Re: Print plots without GUI


From: Ben Abbott
Subject: Re: Print plots without GUI
Date: Tue, 17 Jan 2012 17:15:11 -0500

On Jan 17, 2012, at 3:56 PM, malleor wrote:

> bpabbott wrote
>> 
>> Which operating system are you running ?
>> 
>> And which graphics toolkit are your using ?
>> 
> 
> I'm running Win7 x64, using Octave 3.4.3 i686-pc-mingw32 and
> /available_graphics_toolkits/ says I've got FLTK and gnuplot with it. (Note
> that /graphics_toolkit/ has no argument-less version in Octave 3.4.3.)
> Apparently I've been using *FLTK* there since the following code works fine: 
> 
> octave:1> graphics_toolkit('gnuplot')
> octave:2> figure(1, 'visible', false)
> octave:3> plot(1:10,1:10)
> octave:4> print test.png
> octave:5> 
> 
> and the following fails hard: 
> 
> octave:1> graphics_toolkit('fltk')
> octave:2> figure(1, 'visible', false)
> octave:3> plot(1:10,1:10)
> panic: Segmentation violation -- stopping myself...
> attempting to save variables to `octave-core'...
> save to `octave-core' complete
> 
> I haven't been able to solve this myself. Any suggestions?
> 
> Regards, 
> malleor

The fltk toolkit relies on gl2ps which requires that the plot be rendered on 
screen. If "visible" is set to false, the fltk toolkit cannot print.

If you require the figure to remain hidden, I recommend you use the gnuplot 
toolkit.

Ben


reply via email to

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