1 | initial version |

There is the `zip`

function to transform two lists of the same length into a single list of tuples:

```
sage: zip(primes,expected)
[(23327, 47.4246000000000),
(3009311, 47.9955000000000),
(886463, 95.9383000000000)]
```

Then you can consider them as a list of 2d points to be plotted:

```
sage: p = list_plot(zip(primes,expected), color='blue', marker='o') + list_plot(zip(primes,simulated), color='red', marker='x')
```

2 | No.2 Revision |

There is the `zip`

function to transform two lists of the same length into a single list of tuples:

```
sage: zip(primes,expected)
[(23327, 47.4246000000000),
(3009311, 47.9955000000000),
(886463, 95.9383000000000)]
```

Then you can consider them as a list of 2d points to be plotted:

```
sage: p = list_plot(zip(primes,expected), color='blue', marker='o') + list_plot(zip(primes,simulated), color='red', marker='x')
```

Remark : you can use `points`

instead of `list_plot`

.

3 | No.3 Revision |

There is the `zip`

function to transform two lists of the same length into a single list of tuples:

```
sage: zip(primes,expected)
[(23327, 47.4246000000000),
(3009311, 47.9955000000000),
(886463, 95.9383000000000)]
```

Then you can consider them as a list of 2d points to be plotted:

```
sage: p = list_plot(zip(primes,expected), color='blue', marker='o') + list_plot(zip(primes,simulated), color='red', marker='x')
```

Remark : you can (equivalently) use `points`

or `points2d`

instead of `list_plot`

.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.