[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Choosing graphics backend for documentation
From: |
Mike Miller |
Subject: |
Re: Choosing graphics backend for documentation |
Date: |
Sun, 16 Aug 2015 17:21:12 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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
- Re: Choosing graphics backend for documentation, Ben Abbott, 2015/08/16
- Re: Choosing graphics backend for documentation,
Mike Miller <=
- Re: Choosing graphics backend for documentation, Michael Godfrey, 2015/08/16
- Re: Choosing graphics backend for documentation, Daniel J Sebald, 2015/08/16
- Re: Choosing graphics backend for documentation, Michael Godfrey, 2015/08/16
- Re: Choosing graphics backend for documentation, Ben Abbott, 2015/08/16
- Re: Choosing graphics backend for documentation, Michael Godfrey, 2015/08/17
- Re: Choosing graphics backend for documentation, Ben Abbott, 2015/08/17
- Re: Choosing graphics backend for documentation, Michael Godfrey, 2015/08/17
- Re: Choosing graphics backend for documentation, Ben Abbott, 2015/08/17
- Re: Choosing graphics backend for documentation, Sebastian Schöps, 2015/08/17
- Re: Choosing graphics backend for documentation, Mike Miller, 2015/08/17