From: <ai...@us...> - 2009-04-20 19:23:37
|
Revision: 9823 http://plplot.svn.sourceforge.net/plplot/?rev=9823&view=rev Author: airwin Date: 2009-04-20 19:23:35 +0000 (Mon, 20 Apr 2009) Log Message: ----------- Update documentation of how to use the PLplot and the Cairo driver to draw into an externally supplied XDrawable or Cairo context. Modified Paths: -------------- trunk/examples/c/README.cairo Modified: trunk/examples/c/README.cairo =================================================================== --- trunk/examples/c/README.cairo 2009-04-20 18:26:38 UTC (rev 9822) +++ trunk/examples/c/README.cairo 2009-04-20 19:23:35 UTC (rev 9823) @@ -1,24 +1,24 @@ +Some examples demonstrating how to use the PLplot xcairo and extcairo to +draw into an externally supplied XDrawable or Cairo context. -Some examples demonstrating how to use the PLplot and the Cairo driver to draw -into an externally supplied XDrawable or Cairo context. - EXTERNAL X DRAWABLE EXAMPLES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The external X drawable example is extXdrawable_demo.c. They are not part -of the general PLplot testbed of examples, but are instead designed to +The external X drawable example is extXdrawable_demo.c. It is designed to demonstrate the use of the ability of plplot's xcairo driver to use an X drawable supplied by an application. The example itself uses GTK but the concept applies to any graphical framework, or even programs using libX11 directly. +To build this demo, install PLplot with the "make install" command and then +run 'make extXdrawable_demo' in the installed .../examples/c directory. EXTERNAL CAIRO CONTEXT EXAMPLES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The C program ext-cairo-test.c demonstrates how to pass in an external -Cairo Context that PLplot can use for plotting. On unix like systems you -should be able to compile this as follows: +Cairo Context that PLplot can use for plotting. -gcc ext-cairo-test.c -o ext-cairo-test `pkg-config --cflags --libs plplotd cairo` +To build this demo, install PLplot with the "make install" command and then +run 'make ext-cairo-test' in the installed .../examples/c directory. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |