# Revision history [back]

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')


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.

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.