List of Points

Axiom has the ability to create lists of points in a two dimensional graphics viewport. This is done by utilizing the GraphImage and TwoDimensionalViewport domain facilities. In this example, the makeGraphImage takes a list of lists of points parameter, a list of colors for each point in the graph, a list of colors for each line in the graph, and a list of numbers which indicate the size of each point in the graph. The following lines create list of lists of points which can be read be made into two dimensional graph images. First we make a list of points

Then we select pairs of these points which represent the endpoints of lines.

Next we set the point color and size, and the line color for all components of the graph.

Now the graph image is created and named according to the component specifications indicated above. The makeViewport2D command then creates a two dimensional viewport for this graph according to the list of options specified within the brackets.

The makeViewport2D command takes a list of options as a parameter. In this example the string "Lines" is designated as the viewport's title.