wronskian SciMax Toolbox xlabel

SciMax Toolbox >> xgraph_curves

xgraph_curves

Maxima Function

Calling Sequence

xgraph_curves (list)

Description

graphs the list of `point sets' given in list by using xgraph. If the program xgraph is not installed, this command will fail.

A point set may be of the form

[x0, y0, x1, y1, x2, y2, ...]

or

[[x0, y0], [x1, y1], ...]

A point set may also contain symbols which give labels or other information.

xgraph_curves ([pt_set1, pt_set2, pt_set3]);

graph the three point sets as three curves.

pt_set: append (["NoLines: True", "LargePixels: true"],
                          [x0, y0, x1, y1, ...]);

would make the point set (and subsequent ones), have no lines between points, and to use large pixels. See the man page on xgraph for more options to specify.

pt_set: append ([concat ("\"", "x^2+y")], [x0, y0, x1, y1, ...]);

would make there be a "label" of "x^2+y" for this particular point set. The " at the beginning is what tells xgraph this is a label.

pt_set: append ([concat ("TitleText: Sample Data")], [x0, ...])$

would make the main title of the plot be "Sample Data" instead of "Maxima Plot".

To make a bar graph with bars which are 0.2 units wide, and to plot two possibly different such bar graphs:

(%i1) xgraph_curves ([append (["BarGraph: true", "NoLines: true",
      "BarWidth: .2"], create_list ([i - .2, i^2], i, 1, 3)),
      append (["BarGraph: true", "NoLines: true", "BarWidth: .2"],
      create_list ([i + .2, .7*i^2], i, 1, 3))]);

A temporary file xgraph-out is used.

wronskian SciMax Toolbox xlabel