python basemap 畫出經(jīng)緯度并標定的實例
更新時間:2019年07月09日 11:23:01 投稿:jingxian
今天小編就為大家分享一篇python basemap 畫出經(jīng)緯度并標定的實例,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
如下所示:
兩個函數(shù):Basemap.drawparallels ##緯度 Basemap.drawmeridians ##經(jīng)度 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 畫出經(jīng)緯度并標定的實例就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。
相關(guān)文章
Python sqlparse解析SQL表血緣追蹤實現(xiàn)
這篇文章主要為大家介紹了Python sqlparse解析SQL表血緣追蹤實現(xiàn),有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2022-10-10python神經(jīng)網(wǎng)絡Batch?Normalization底層原理詳解
這篇文章主要為大家介紹了python神經(jīng)網(wǎng)絡Batch?Normalization底層原理詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2022-05-05在Python中使用CasperJS獲取JS渲染生成的HTML內(nèi)容的教程
這篇文章主要介紹了在Python中使用CasperJS獲取JS渲染生成的HTML內(nèi)容的教程,需要先用JavaScript創(chuàng)建一個接口文件,需要的朋友可以參考下2015-04-04如何關(guān)掉pycharm中的python console(圖解)
本文通過圖文并茂的形式給大家介紹了如何關(guān)掉pycharm中的python console,非常不錯,具有一定的參考借鑒價值,需要的朋友可以參考下2019-10-10