由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - error draw map from shape file Python 3.2 basemap (转载)
相关主题
ploting 3D surface in python (转载)问个python的code
ploting 3D surface in python (转载)这种情况应该pip还是……
请教Python和Java的前景,和如何积累经验a question about parallel/distributed system
也不能乱黑python那位讲下并行计算这门课在工作里有实际作用么?
求建议,Google Quantitative analyst 面试用R 还是Pythonthread和process区别,parallel和concurrent 区别
求职困境中,请帮推荐entry level data analyst opening讨论一道面试题
solve integral eq. embeeded with another integral eq. (转载)amazon电面跪了
python的int问题这道计算几何题怎么做?
相关话题的讨论汇总
话题: basemap话题: import话题: python话题: map话题: labels
进入JobHunting版参与讨论
1 (共1页)
l******9
发帖数: 579
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.
1 (共1页)
进入JobHunting版参与讨论
相关主题
这道计算几何题怎么做?求建议,Google Quantitative analyst 面试用R 还是Python
[quantcast面经] software engineer求职困境中,请帮推荐entry level data analyst opening
准备不好面试就是会悲剧solve integral eq. embeeded with another integral eq. (转载)
POSITION OPENING: IMPORT MANAGER IN NYC (转载)python的int问题
ploting 3D surface in python (转载)问个python的code
ploting 3D surface in python (转载)这种情况应该pip还是……
请教Python和Java的前景,和如何积累经验a question about parallel/distributed system
也不能乱黑python那位讲下并行计算这门课在工作里有实际作用么?
相关话题的讨论汇总
话题: basemap话题: import话题: python话题: map话题: labels