On Thu, Sep 22, 2005 at 10:12:22AM -0600, Robert Jerrard wrote:
> Am I doing something incorrectly?
>
> (%i15) openplot_curves([["{plotpoints 1} {pointsize 6} {label jim} {text
> {xaxislabel {joe is nice}}}"],[1,2,3,4,5,6,7,8],["{label jane} {color
> pink}"],[3,1,4,2,5,7]]);
>
> This example is right out of the maxima manual.
Hi Bob,
I'm sorry for the very late reply, but I've been terribly busy.
The manual is wrong. {text {xaxislabel {joe is nice}}} should be
replaced with {xaxislabel {joe is nice}}.
The syntax of openplot_curves is very weird and prone to errors, because
it expects a TCL expression that will be passed directly to Openmath, without
any checking. Openmath is run as an independent process, without
communication with Maxima, and when it gets stuck Maxima might get stuck.
Jim wrote a nice replacement using gnuplot (option "discrete" for plot2d),
but unfortunately I have not managed to make it work with several sets of
data, or when there are more than a dozen points.
I've written a replacement for openplot_curves, that you can
find in http://fisica.fe.up.pt/maxima/graph2d/
The example you showed above would work like this:
load("graph2d.lisp")$
graph2d([plotpoints,1], [pointsize,6], [label,"jim"],
[xaxislabel,"joe is nice"], [[1,2],[3,4],[5,6],[7,8]],
[label,"jane"], [color,"pink"], [[3,1],[4,2],[5,7]]);
The xaxis label will not appear because the axes are out of the domain.
You can either click on "Zoom" in the menu and then clik+Shift on the
plot to reduce the size, or specify a domain for the plot:
graph2d([plotpoints,1], [pointsize,6], [label,"jim"],
[xaxislabel,"joe is nice"], [1,3,5,7], [2,4,6,8],
[label,"jane"], [color,"pink"], [3,4,5], [1,2,7],
[xcenter,4], [xradius,4], [ycenter,4.5], [yradius,4.5]);
In this second case I used the same data points in the form
[x1,...,xn], [y1,...,yn] which is also acceptable.
openplot_curves notation: [x1,y1,x2,y2,...,xn,yn] is not accepted by
graph2d.
I hope this late advice is still helpfull.
Regards,
Jaime