I am using GeoPandas and I want to plot two layers. I want the map to have the extent of the smaller layer. With this code below, the map's size automatically fits the bigger layer.
import geopandas as gp
import matplotlib.pyplot as plt
from shapely.geometry import LineString
from shapely.geometry import MultiPoint
thesmallpoints=gp.GeoDataFrame([[MultiPoint([(0, 0), (1, 1), (1,2), (2,2)])]],columns=['geometry'])
thelargeline=gp.GeoDataFrame([[LineString([(0, 0), (1, 1), (1,2), (20,20)])]],columns=['geometry'])
base=thesmallpoints.plot(marker='o', color='blue', markersize=20)
thelargeline.plot(ax=base, color='green')
plt.show()
How can this be achieved?