Macaulay2 » Documentation
Packages » VectorGraphics :: listPlot
next | previous | forward | backward | up | index | toc

listPlot -- Graphical representation of a list

Description

Given a list of real numbers or vectors, this function joins them together to form a piecewise linear curve. If the arguments are numbers, they form the y coordinates, and the x coordinates are assumed to be regularly spaced.

The optional argument Join specifies whether points should be connected by a line.

i1 : listPlot apply(10,i->0.1*i^2)

o1 = GraphicsList{Axes => true                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               }
                  cache => CacheTable{}
                  Contents => {Polyline{cache => CacheTable{}                                                                                                                                                                                                                                                                           }, GraphicsList{cache => CacheTable{}                                                                                                                                                                                                                                                                                                                                                                                                                                                              }}
                                        PointList => {GraphicsCoordinate | 0 |, GraphicsCoordinate |  1 |, GraphicsCoordinate |  2 |, GraphicsCoordinate |  3 |, GraphicsCoordinate |  4  |, GraphicsCoordinate |  5  |, GraphicsCoordinate |  6  |, GraphicsCoordinate |  7  |, GraphicsCoordinate |  8  |, GraphicsCoordinate |  9  |}                Contents => {Circle{cache => CacheTable{}             }, Circle{cache => CacheTable{}              }, Circle{cache => CacheTable{}              }, Circle{cache => CacheTable{}              }, Circle{cache => CacheTable{}               }, Circle{cache => CacheTable{}               }, Circle{cache => CacheTable{}               }, Circle{cache => CacheTable{}               }, Circle{cache => CacheTable{}               }, Circle{cache => CacheTable{}               }}
                                                                         | 0 |                     | .1 |                     | .4 |                     | .9 |                     | 1.6 |                     | 2.5 |                     | 3.6 |                     | 4.9 |                     | 6.4 |                     | 8.1 |                                     Center => GraphicsCoordinate | 0 |          Center => GraphicsCoordinate |  1 |          Center => GraphicsCoordinate |  2 |          Center => GraphicsCoordinate |  3 |          Center => GraphicsCoordinate |  4  |          Center => GraphicsCoordinate |  5  |          Center => GraphicsCoordinate |  6  |          Center => GraphicsCoordinate |  7  |          Center => GraphicsCoordinate |  8  |          Center => GraphicsCoordinate |  9  |
                                                                         | 0 |                     |  0 |                     |  0 |                     |  0 |                     |  0  |                     |  0  |                     |  0  |                     |  0  |                     |  0  |                     |  0  |                                                                  | 0 |                                       | .1 |                                       | .4 |                                       | .9 |                                       | 1.6 |                                       | 2.5 |                                       | 3.6 |                                       | 4.9 |                                       | 6.4 |                                       | 8.1 |
                                                                         | 1 |                     |  1 |                     |  1 |                     |  1 |                     |  1  |                     |  1  |                     |  1  |                     |  1  |                     |  1  |                     |  1  |                                                                  | 0 |                                       |  0 |                                       |  0 |                                       |  0 |                                       |  0  |                                       |  0  |                                       |  0  |                                       |  0  |                                       |  0  |                                       |  0  |
                                        style => MutableHashTable{...1...}                                                                                                                                                                                                                                                                                                                               | 1 |                                       |  1 |                                       |  1 |                                       |  1 |                                       |  1  |                                       |  1  |                                       |  1  |                                       |  1  |                                       |  1  |                                       |  1  |
                                                                                                                                                                                                                                                                                                                                                                            Radius => .1                                Radius => .1                                 Radius => .1                                 Radius => .1                                 Radius => .1                                  Radius => .1                                  Radius => .1                                  Radius => .1                                  Radius => .1                                  Radius => .1
                                                                                                                                                                                                                                                                                                                                                                            style => MutableHashTable{}                 style => MutableHashTable{}                  style => MutableHashTable{}                  style => MutableHashTable{}                  style => MutableHashTable{}                   style => MutableHashTable{}                   style => MutableHashTable{}                   style => MutableHashTable{}                   style => MutableHashTable{}                   style => MutableHashTable{}
                                                                                                                                                                                                                                                                                                                                                        style => MutableHashTable{...1...}
                  Size => 40
                  style => MutableHashTable{...1...}

o1 : GraphicsList

For the programmer

The object listPlot is a function closure.