正弦图像: #coding:utf-8import numpy as npimport matplotlib.pyplot as pltx=np.linspace(0,10,1000)y=np.sin(x)z=np.cos(x**2)#控制图形的长和宽单位为英寸,# 调用figure创建一个绘图对象,并且使它成为当前的绘图对象.plt.figure(figsize=(8,4))#$可以让字体变得跟好看#给所绘制的曲线一个名字,此名字在图示(legend)中显示.# 只要在字符串前后添加"$&qu
# 高斯坐标转经纬度算法# B=大地坐标X# C=大地坐标Y# IsSix=6度带或3度带def GetLatLon2(B, C,IsSix): #带号 D = math.trunc(C / 1000000) #中央经线(单位:弧度) K = 0 if IsSix: K = D * 6 - 3 #6度带计算 else: K = D * 3 #3度带计算 L = B/(6378245*(1-0.006693421623)*1.0050517739) M = L +(0.00506237764 *
import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 97, in <module> _backend_mod, new_figure_mana
import arcpy infc = arcpy.GetParameterAsText(0) # Identify the geometry field # desc = arcpy.Describe(infc) shapefieldname = desc.ShapeFieldName # Create search cursor # rows = arcpy.SearchCursor(infc) # Enter for loop for each feature/row # for row