Skip to content

unable to give latitude and longitude to the basemap #556

@haritha1022

Description

@haritha1022

I was trying to plot argoflots data they are situated at same latitude and longitude with little variation i want know exact location of each argofloat
argo

here is the code:
df = pd.read_csv("Book122.csv")

plt.figure(figsize=((19,10)))

x=df['longitude']
y=df['latitude']

m = Basemap(projection='cyl',llcrnrlat=27.1022,urcrnrlat=27.1025,
llcrnrlon=64.7793,urcrnrlon=64.7799,resolution='h')

m.scatter(x,y,zorder=10)
m.drawparallels(np.arange(int(27.101),int(27.103),0.001),labels=[1,0,0,0])
m.drawmeridians(np.arange(int(64.7791),int(64.7798),0.0001),labels=[0,0,0,1])
#m.drawcoastlines()
m.fillcontinents(color='white')
m.drawmapboundary()

plt.show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions