Redian新闻
>
南棒有的,北棒也有 (转载)
avatar
南棒有的,北棒也有 (转载)# Joke - 肚皮舞运动
l*9
1
【 以下文字转载自 Programming 讨论区 】
发信人: light009 (light009), 信区: Programming
标 题: error draw map from shape file Python 3.2 basemap
发信站: BBS 未名空间站 (Sat Feb 14 13:51:37 2015, 美东)
I am working on drawing map from shape file in Python 3.2 basemap.
But, the longitude values at the bottom axis are only shown partially. Also,
all latitude values are missing.
Here is my python code.
import shapefile as sf
import sys
import numpy as np
import matplotlib.pylab as plt
from mpl_toolkits.basemap import Basemap
map = Basemap(projection='stere', lon_0=-106.4, lat_0= 31.9, lat_ts = 31.9
,
llcrnrlat=31.7, urcrnrlat= 31.85,
llcrnrlon=-106.5 , urcrnrlon= -106.1,
rsphere=6371200., resolution='l', area_thresh=1000)
plt.figure(num=None, figsize=(10, 8), dpi=80, facecolor='w', edgecolor='k')
parallels = np.arange(31.7, 31.85, 0.25)
map.drawparallels(parallels, labels=[0, 0, 0, 1] , fontsize=10, labelstyle='
+/-', dashes=[2, 2])
meridians = np.arange (-106.5, -106.1, 0.25)
map.drawmeridians(meridians, labels=[0, 0, 0, 1], fontsize=10, labelstyle='+
/-' , dashes=[2, 2])
No matter how I changed the labels, the latitude/longitude legend values are
still missing.
avatar
C*l
2
【 以下文字转载自 Military 讨论区 】
发信人: Closingbell (替我问候你的主治大夫), 信区: Military
标 题: 南棒有的,北棒也有
发信站: BBS 未名空间站 (Tue May 13 10:17:50 2014, 美东)
avatar
w*x
3
倒数第二个是李成桂?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。