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: Daniel J Sebald
Subject: Re: Choosing graphics backend for documentation
Date: Sun, 16 Aug 2015 16:59:41 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 08/16/2015 04:45 PM, Michael Godfrey wrote:


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?

What figures can't be drawn?

Dan



reply via email to

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