/* ** ** Example.ox ** ** Purpose: ** Provide an example for using GnuPlot together with LaTeX ** ** Date: ** 19/7/2000 ** ** Author: ** Charles Bos ** */ #include // Include the Ox standard library header #include main() { decl mY; mY= rann(1, 1000); // Preparing LaTeX output DrawDensity(0, mY, "$\\theta$", 1, 1, 1); SaveDrawWindow("examtex.tex"); CloseDrawWindow(); // Preparing EPS output DrawDensity(0, mY, "{/Symbol q}", 1, 1, 1); SaveDrawWindow("exameps.eps"); CloseDrawWindow(); DrawDensity(0, mY, "theta", 1, 1, 1); SaveDrawWindow("exampng.png"); SaveDrawWindow("examfig.plb"); ShowDrawWindow(); }