On Fri, Mar 07, 2008 at 05:43:43PM +0100, Fons Adriaensen wrote: > On 16 Feb I wrote: > > > ... > > > > Now I'm trying to find out how to use Plplot purely > > as a plotting library in existing X11 apps. > > > > What I need is a function that will draw a 3D plot to > > window or a pixmap using either the basic X11 backend > > or Cairo, and nothing more. Setting up any resources > > and calling the function at the right time is the > > application's responsability. The drawing routing is > > not expected to create the window, wait for X events > > etc., and in fact must not do any of this. > > > > ... > > There were no useful answers, so this means I'll > have to abandon plplot - a pity since the output > produced is quite nice.
Fons, You might like to look at the mem device. This might do what you want. Interestingly enough there is someone else currently looking on plotting direct to an X Drawable which sounds even more like what you want. You can find the relevant thread and patch on the plplot-devel mailing list. There is an archive at http://sourceforge.net/mailarchive/forum.php?forum_name=plplot-devel This uses Cairo to produce the output, which provides better font support amongst other things. Andrew ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general