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 => {| 0 |, |  1 |, |  2 |, |  3 |, |  4  |, |  5  |, |  6  |, |  7  |, |  8  |, |  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 => | 0 |                      Center => |  1 |                     Center => |  2 |                     Center => |  3 |                     Center => |  4  |                    Center => |  5  |                    Center => |  6  |                    Center => |  7  |                    Center => |  8  |                    Center => |  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.