- 积分
- 55955
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2017-4-7 22:34:12
|
显示全部楼层
- fn = 'D:/Temp/ascii/lighting/1.csv'
- table = readtable(fn, delimiter=',', format='%i%{yyyy/M/d H:mm}D%s%4f%3s%4f', \
- encoding='gb2312')
- lon = table[u'经度']
- lat = table[u'纬度']
- v = table[u'强度(千安)']
- ltype = table[u'类型']
- #Plot
- axesm()
- mlayer = shaperead('D:/Temp/map/bou2_4p.shp')
- geoshow(mlayer)
- ss = makesymbolspec('point', {'value':(-10000,0), 'color':'b', 'marker':'m', 'size':6, 'caption':'Negative'}, \
- {'value':(0,10000), 'color':'r', 'marker':'+', 'size':6, 'caption':'Positive'})
- layer = scatterm(lon, lat, v, symbolspec=ss)
- legend(legend=layer.legend(), loc='lower left')
- xlim(100, 120)
- ylim(20, 30)
- title('Lighting locations')
|
|