|
From: Jerzy K. <jer...@un...> - 2012-02-29 17:43:16
|
David Craig : > I'm trying to produce a map with 12 locations marked on it and straight > lines plotted between each point and all other points on the map. I have > the map with the locations ok but am having trouble getting the lines. > My code is below anyone know how to do this?? > ... > for i in range(len(lons)): > for j in range(len(lons)): > if i == j: continue > m.plot([x[i],y[i]],[x[j],y[j]],'k') I am not sure what do you really want, but perhaps replace the last cited line by: m.plot([x[i],x[j]],[y[i],y[j]],'k') == All the best. Jerzy Karczmarczuk Caen, France |