gis - Representing a Fan Shaped Image on a Map using Python -
i looking display object (fan shaped object each protruding line @ 'id angle' vertical) on map using below table input:
fan shaped object:
i able display point on map using python (very easy). problem far has been coming way represent each protruding line per above object.
i appreciate help.
update
please see below:
import matplotlib.pyplot plt longitude = [4.3323, 4.3323, 4.3323] latitude = [2.3433, 2.3433, 2.3433] x,y = map(longitude, latitude) map.plot(x, y, 'bo', markersize=18) plt.show() so have been able represent these data points point.
i need integrate directional improvements earlier stated.
try this:
import numpy np import matplotlib.pyplot plt center = (4.3323, 2.3433) angles = [60, 120, 240] angles = [a/180.0*np.pi in angles] # scale l = 1 # center point x, y = center # draw each line in angles: dx = l * np.sin(a) dy = l * np.cos(a) plt.plot([x, x + dx], [y, y + dy], 'k-') # draw center circle plt.plot(x, y, 'wo', ms=l*100) plt.show() 

Comments
Post a Comment