I have a list of pairs (a, b) that I would like to plot with matplotlib in python as actual x-y coordinates. Currently, it is making two plots, whe
(a, b)
matplotlib
If you have a numpy array you can do this:
import numpy as np from matplotlib import pyplot as plt data = np.array([ [1, 2], [2, 3], [3, 6], ]) x, y = data.T plt.scatter(x,y) plt.show()