From: James T. <jt...@gm...> - 2012-09-21 14:22:28
|
On 20 September 2012 19:17, Alan W. Irwin <ir...@be...> wrote: > On 2012-09-19 15:51-0600 James Tappin wrote: > > Is there a list anywhere of the driver options for the various cairo >> drivers? Particularly any to set image or page sizes and for pscairo is >> there a way to produce encapsulated output? >> >> > Hi James: > > Thanks for your interest in PLplot. > > To answer your questions in order > > 1. To get a list of drvopt options pecify a bad driver option, e.g., > > examples/c/x01c -dev pscairo -drvopt xxxxx > > 2. Of course, driver options are not the whole story, and, for example, > you can specify the size of at least the xcairo result (and possibly > other cairo devices?) with the general -geometry option. > > 3. Our cairo device driver depends on the pango/cairo combination of > libraries, and I believe its a limitation of cairo's PostScript backend > (what we use for the pscairo device), that encapsulated PostScript is > not supported. However, it is not too bad since you can run > single-page -dev pscairo results through ps2eps to produce encapsulated > PostScript. > > Note another set of high-quality devices are implemented by > our qt device driver. In that case, -dev epsqt does produce > encapsulated PostScript directly. > > Alan > Thanks Alan, The epsqt driver does deliver what I need, although on one machine I get a warning: QGtkStyle cannot be used together with the GTK_Qt engine. (I think that is related to the engine that I use to get Gtk widgets to match my KDE style). In principle I would think that the cairo driver should be able to do eps via the cairo_ps_surface_set_eps<http://www.cairographics.org/manual/cairo-PostScript-Surfaces.html#cairo-ps-surface-set-eps>function. BTW: You may be itnerested to see what we've been doing in integrating plplot into Gtk-fortran (https://github.com/jerryd/gtk-fortran/wiki). James |