最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

python basemap 畫出經緯度并標定的實例

 更新時間:2019年07月09日 11:23:01   投稿:jingxian  
今天小編就為大家分享一篇python basemap 畫出經緯度并標定的實例,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧

如下所示:

兩個函數(shù):Basemap.drawparallels ##緯度
     Basemap.drawmeridians ##經度
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
# setup Lambert Conformal basemap.
m = Basemap(width=12000000,height=9000000,projection='lcc',
      resolution='c',lat_1=45.,lat_2=55,lat_0=50,lon_0=-107.)
# draw coastlines.
m.drawcoastlines()
# draw a boundary around the map, fill the background.
# this background will end up being the ocean color, since
# the continents will be drawn on top.
m.drawmapboundary(fill_color='aqua')
# fill continents, set lake color same as ocean color.
m.fillcontinents(color='coral',lake_color='aqua')
# draw parallels and meridians.
# label parallels on right and top
# meridians on bottom and left
parallels = np.arange(0.,81,10.)
# labels = [left,right,top,bottom]
m.drawparallels(parallels,labels=[False,True,True,False])
meridians = np.arange(10.,351.,20.)
m.drawmeridians(meridians,labels=[True,False,False,True])
plt.show()
 

以上這篇python basemap 畫出經緯度并標定的實例就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關文章

最新評論

邢台市| 丹凤县| 宣城市| 龙泉市| 曲靖市| 广汉市| 广安市| 武鸣县| 邓州市| 贡嘎县| 咸宁市| 义马市| 鄂尔多斯市| 天长市| 泽州县| 贵州省| 襄城县| 广灵县| 墨脱县| 仁怀市| 文水县| 永仁县| 利津县| 鄂托克旗| 天祝| 临沧市| 垦利县| 石林| 措勤县| 永康市| 灵武市| 界首市| 迭部县| 淳安县| 清苑县| 鄢陵县| 民丰县| 庄河市| 泸溪县| 固原市| 河北区|