I want to plot a square grid of size 2km by 2km with the point (latitude, longitude) in degrees:
co_ord = (47.9187393, 106.9175013)
located at the center of the square grid.
I have tried:
import pandas as pd
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
# setting the size of the map
fig = plt.figure(figsize=(12,9))
# create the map - setting latitude and longitude
m = Basemap( projection = 'mill', llcrnrlat = 47.85, urcrnrlat = 48.1, llcrnrlon = 106.2, urcrnrlon = 107.1, resolution ='h')
m.drawcoastlines()
m.drawcountries(color='gray')
m.drawstates(color='gray')
# creating variable for latitude, longitude to list
lat = 47.9187393
lon = 106.9175013
# plotting the map
m.scatter(lon, lat, latlon = True, s = 10, c = 'red', marker = 'o', alpha = 1)
plt.show()
However, I would also like to display geographical locations along with my x axis and y axis of the plot being in metres with the co-ordinate being at (0,0) of the plot.
EDIT
The code from jinyao gives the following image. The scale is off and there is still no geographical features (like rivers, lakes, fields).

Use
xticksandyticksto draw ticks then add label.Code:
pyplot xticks