本篇内容介绍了“micaps mdfs怎么用”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
t=np.linspace(0,5,100)x=t+np.random.normal(size=100)x_detrended=signal.detrend(x)plt.plot(t,x,color='b',linewidth=2,label='x')plt.plot(t,x_detrended,color='r',linewidth=2,label='x_detrended')plt.legend(loc='upper left')yaxis(tickvisible=True,location='left',tickwidth=2,linewidth=2,ticklength=3) #ticklength刻度线长度,tickwidth刻度线宽度,linewidth边框宽度yaxis(tickvisible=False,location='right',tickwidth=2,linewidth=2,ticklength=4) #分别调试tick的宽度,边框线宽和tick的长度xaxis(tickvisible=False,location='top',tickwidth=2,linewidth=2,ticklength=4) xaxis(tickvisible=True,location='bottom',tickwidth=2,linewidth=2,ticklength=3)savefig('F:/RMeteoInfo/plot78.png',600,400,dpi=800)
#Read temporature data from a surfer grid datastfn = 'F:/RMeteoInfo/data/china128.csv'table = DataFrame.read_table(stfn,delimiter=',', format='%2f%2s%f',encoding='gb2312')name = table['city_name'].valueslat = table['lat'].valueslon = table['lon'].valuestdata = table['GDP2'].values#Read China layer from shape filechina = shaperead('F:/RMeteoInfo/data/1China_shp_lqy/province3.shp')nine = shaperead('F:/RMeteoInfo/data/1China_shp_lqy/nine_line.shp')#Plotaxesm()levs = arange(100,1000,100)cols = makecolors(len(levs)+1)ls = makesymbolspec('polygon', field='ID_2', levels=levs,colors=cols,edge=False,edgecolor='k',size=0.3) #Truegeoshow(china,symbolspec=ls,edgecolor='gray',size=0.3)geoshow(nine,edgecolor='k',size=1.2)geoshow(china,edgecolor='k',size=0.5)layer = scatter(lon, lat, facecolor='k',edgecolor=None,size=0)layer.addfield('Name', 'string', name)layer.addlabels('Name', fontname=u'楷体',bold=True, fontsize=8, color='k',yoffset=0)title('Average temporature of states')colorbar(ls, orientation='horizontal',ticklen=0,extendrect=False, shrink=1, aspect=50)yaxis(tickvisible=True,location='left',tickwidth=2,linewidth=2,ticklength=3) #ticklength刻度线长度,tickwidth刻度线宽度,linewidth边框宽度yaxis(tickvisible=False,location='right',tickwidth=2,linewidth=2,ticklength=4) #分别调试tick的宽度,边框线宽和tick的长度xaxis(tickvisible=False,location='top',tickwidth=2,linewidth=2,ticklength=4) xaxis(tickvisible=True,location='bottom',tickwidth=2,linewidth=2,ticklength=3)xlim(70,140)ylim(0, 60)xticks(arange(70, 140.1, 10),bold=True,fontsize=15)yticks(arange(0, 60.1, 10),bold=True,fontsize=15)savefig('F:/RMeteoInfo/plot32.12.png', dpi=1200)
“micaps mdfs怎么用”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注亿速云网站,小编将为大家输出更多高质量的实用文章!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。