From: John H. <jdh...@ac...> - 2004-09-08 14:04:39
|
>>>>> "Darren" == Darren Dale <dd...@co...> writes: Darren> There are a lot of ways to do this, I dont know them Darren> all. Here are a few to get you started: These are all good suggestions, and the right way 99% of the time. I just want to point out that if you need to plot hundreds or thousands of separate lines, calling plot over and over again is not the most efficient strategy, since a new matplotlib.lines.Line2D object must be created each time. For these cases it is best to use a line collection (matplotlib.collections.LineCollection). You can find an example of their use in the plotmap demo - http://matplotlib.sourceforge.net/screenshots.html#plotmap, where line collections are used to draw the geographic borders over a colormap. JDH |