gnuplot



gnuplot_command is used in plot2d and plot3d. For the draw package
redefine draw_command.

Andrej

On Mon, Nov 24, 2008 at 6:34 PM, Leo Butler <l.butler at ed.ac.uk> wrote:
>
>
> On Thu, 20 Nov 2008, Andrej Vodopivec wrote:
>
> < You can set the gnuplot_command variable in your maxima-init.mac file.
> <
> < Andrej
> <
> <
> <
> < On Thu, Nov 20, 2008 at 4:43 PM, Leo Butler <l.butler at ed.ac.uk> wrote:
> < > Hello,
> < >
> < > Is there a way (an init file?) to make maxima use a particular version
> < > of gnuplot? I have gnuplot 4.0 installed and recently installed v4.2.4
> < > but maxima is still using the old v4.0.
>
> Andrej, thank you for the tip.
>
> Unfortunately, there appears to be some further problem. I have set
> gnuplot_command, but maxima spits out an error from gnuplot when I use
> draw2d.
>
> When I load the 'maxout.gnuplot' file directly into the
> correct gnuplot (v4.2.4), the file is executed without error.
>
> From this, I infer that maxima is using the old version of gnuplot
> despite my having set gnuplot_command.
>
> Leo.
>
>
> Code:
> $ maxima
> Maxima 5.16.3 http://maxima.sourceforge.net
> Using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (aka GCL)
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) print(gnuplot_command);
> /home/lbutler/maxima/gnuplot-4.2.4/src/gnuplot
> (%o1)           /home/lbutler/maxima/gnuplot-4.2.4/src/gnuplot
> (%i2) s_m : x^2;
>                                       2
> (%o2)                                 x
> (%i3) uns_m : -x^3;
>                                        3
> (%o3)                                - x
> (%i4) load(draw)$
>
> (%i5) xmin: -0.1;
> (%o5)                                - 0.1
> (%i6) xmax: 0.1;
> (%o6)                                 0.1
> (%i7) draw2d(parametric(x,uns_m,x,xmin,xmax),
> parametric(s_m,x,x,xmin,xmax)
> );
> (%o7)                   [gr2d(parametric, parametric)]
> (%i8)          "/home/lbutler/maxout.gnuplot", line 15: undefined
> variable: border
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> $ /home/lbutler/maxima/gnuplot-4.2.4/src/gnuplot
>
>        G N U P L O T
>        Version 4.2 patchlevel 4
>        last modified Sep 2008
>        System: Linux 2.6.18-92.1.10.el5
>
>        Copyright (C) 1986 - 1993, 1998, 2004, 2007, 2008
>        Thomas Williams, Colin Kelley and many others
>
>        Type `help` to access the on-line reference manual.
>        The gnuplot FAQ is available from http://www.gnuplot.info/faq/
>
>        Send bug reports and suggestions to
> <http://sourceforge.net/projects/gnuplot>;
>
>
> Terminal type set to 'x11'
> gnuplot> load "/home/lbutler/maxout.gnuplot"
> gnuplot>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>