|
From: | Rik |
Subject: | Re: Device list for printing |
Date: | Fri, 20 Feb 2015 09:58:17 -0800 |
On 02/20/2015 09:00 AM,
address@hidden wrote:
See http://www.mathworks.com/help/matlab/ref/print.html and the Printer Driver subsection for a device list that we should strive to support. Maybe we need to update the documentation.
I don't think they are invalid for FLTK/Qt. If the user asks for a format that is not natively supported by gl2ps (eps, ps, pdf, svg) then Octave generates an eps file and uses ghostscript to turn it into the correct format. I just tried with hpgl and aifm, two rather esoteric formats, and it worked fine.
Looking at the Matlab documentation, it looks like we should change the defaults so that ps/psc produces PostScript level 3.0 and ps2/psc2 produce Postscript level 2.0.
There is already this documentation about the ghostscript terminal: For a complete list, type `system ("gs -h")' to see what formats and devices are available. And we do the same thing with gnuplot that we do for OpenGL by using eps and ghostscript to turn one format into another. I just tried graphics_toolkit gnuplot plot (1:10) plot -dljet2p tmp.2p and this works to create the very esoteric Laserjet2 format. I don't think we need to be concerned about all of the shifting terminals that gnuplot has based on version number.
The tests are actually fine. The case statement is using an "otherwise" statement so even if the toolkit is qt, new_toolkit will be defined. However, both of these are under %!testif HAVE_FLTK conditionals. It would be better to re-write this to use available_graphics_toolkits and as long as the list returned is 2 or more, then switch from one toolkit to the other to verify this. If we get qt plotting for the CLI then I think it would be good to review all of the %!testif HAVE_FLTK conditionals and see if they can become just %!test. --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |