octave-maintainers
[Top][All Lists]
Advanced

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

Re: Choosing graphics backend for documentation


From: Michael Godfrey
Subject: Re: Choosing graphics backend for documentation
Date: Sun, 16 Aug 2015 22:45:57 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0



On 08/16/2015 10:21 PM, Mike Miller wrote:
On Sun, Aug 16, 2015 at 16:11:05 -0400, Ben Abbott wrote:
> Does the attached patch look ok?
Does it work for you? I think all that's missing is another error in
case gnuplot is not available (which is now possible).

Something like

 function set_graphics_toolkit ()
   if (isempty (available_graphics_toolkits ()))
     error ("no graphics toolkit available for plotting");
   elseif (! strcmp ("gnuplot", graphics_toolkit ()) ...
      && ! octave_config_info ().features.OSMESA)
     if (! any (strcmp ("gnuplot", available_graphics_toolkits ())))
       error ("no graphics toolkit available for offscreen plotting");
     else
       graphics_toolkit ("gnuplot");
     endif
   endif
 endfunction

look ok?

-- mike
If gnuplot is used not all figures can be drawn.  Is this useful?


reply via email to

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