Note that the advanced options of this version of GnuDraw require GnuPlot version 4.22 or later; download this from SourceForge.
Latest version: gnudraw5.zip. See also change log.
GnuDraw is an Ox
package meant for creating GnuPlot
graphics.
The interface is completely based on the work of Jurgen Doornik, in his
OxDraw
package. Likewise, the documentation (see
gnudraw.html)
is also largely a copy of Jurgen Doornik's
oxdraw.html.
With Ox 3.20 GnuPlot can be called automatically from within Ox. Therefore, ShowDrawWindow can be used, displaying graphs on the screen. Under Unix, it is possible using SetDrawWindow to display all graphs in the same drawing window, thus allowing for animated graphs.
The resulting GnuPlot-files are in plain ASCII, and can be adapted to fit final needs.
Output of the GnuPlot files can be of many different types. Included is support for EPS, GIF, PDF, PNG, PS, PSLaTeX, SVG and XFig. There is also an option to save the files in pure GnuPlot format, allowing the user to choose the final output at a later stage.
Below are given a short usage instruction, an overview of the extended functionality of GnuDraw, and a logbook of changes at the bottom of this page. Separate pages provide installation instructions and a range of examples of GnuDraw in action. The package contains an elaborate manual in HTML.
#include <oxdraw.h>to
#include <packages/gnudraw/gnudraw.h>In the rest of the program, you may choose a different output file format; the GiveWin format is not available, but others come in its place.
If you choose e.g. the EPS output format, creating a graph with
SaveDrawWindow("example.eps");
then two files are left on your drive: Apart from the
example.eps file, a second example.plt file is left,
containing the GnuPlot instructions used in creating the graph. This is
the file I tend to save, and if necessary adapt afterwards to change the
colours at a later stage, add text, and recreate the graphics.
There is also the option to save the graphics only in GnuPlot format, using SaveDrawWindow("example.plb"). In this case, script/batch files can be used to convert the graph to the final format at a later stage. See the explanation for the script/batch files for details.
The graphs can be displayed on the screen immediately, both on Windows and Unix machines. Under Unix, the option is included to change graphics on the screen, allowing for animated graphs.
Other extensions include:
Please let me know of installation problems, I was not able to check it on many different systems. Also, please drop me a line if you encounter bugs or are missing special functionality.