I have two lists of latitude and longitude which latitude (xx) is like:
print(xx)
[['46.0'], ['-69.7'], ['-50.7'], ['-22.3'], ['-36.7'], ['65.1'], ['-26.3'], ['-47.5'], ['19.4'], ['-82.3'], ['50.8'], ['-63.5'], ['34.2'], ['65.1']]
I want to have a simple scatter plot of these latitudes and longitudes but I receive this error:
TypeError Traceback (most recent call last)
<ipython-input-124-bc1e6bece6b3> in <module>
15 m.drawmapboundary(fill_color='aqua')
16 plt.title("distribution of the observation")
---> 17 x, y = map(yy, xx)
18 map.scatter(x, y, marker='D',color='m')
19 plt.show()
TypeError: 'list' object is not callable
-xx is list:
type(xx)
list
and
type(xx[0])
list