If your collection of points is a numpy array, you can use the column
of y-coordinates as the first argument to the plotting function
hlines. E.g, inside ipython --pylab:
ptn = array(([1,1],[3,1],[2,4],[4,4]))
hlines(ptn[:,1], -1, 1)
But at that point the horizontal lines are on the edges o
Hi,
I'm a newbie, and I'm trying to plot horizontal
lines with the following points:
[1,1], [3,1], [2,4] and [4,4].
Also, is there a way of putting them together in
lists, (say the pair of points that plot one horizontal line )
for easy plotting? Could anyone please help me with the
code? Than