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: Mon, 27 Jul 2015 17:14:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

Ben, Mike,

The scripts that generate the images are m-files in doc/interpreter.  They
all have a subfunction called set_graphics_toolkit() which is shown below.

-- Start of Code --
## This function no longer sets the graphics toolkit; That is now done
## automatically by C++ code which will ordinarily choose 'qt', but might
## choose gnuplot on older systems.  Only a complete lack of plotting is a
## problem.
function set_graphics_toolkit ()
  if (isempty (available_graphics_toolkits ()))
    error ("no graphics toolkit available for plotting");
  endif
endfunction
-- End of Code --

This could be modified to check for the presence of OSMESA and attempt to
use gnuplot if it is not present.

This check works for me

if (octave_config_info ().features.OSMESA)
 ...
endif


The way I wrote the preliminary version of this, it fell back to
gnuplot (if available), but I am not sure that this is really a
good idea. Having copies of the Manual built with problems
may not be helpful.

Michael


reply via email to

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