I have a plot that displays a raster file and shapefiles with the axes shown in lat/lon. Is there an option to change the axis to DMS instead?
coastline = gpd.read_file('.shp')
coords = gpd.read_file('.shp')
raster = rasterio.open('.tif')
fig, ax = plt.subplots(figsize=(15, 15))
rasterio.plot.show(raster, ax=ax)
coastline.plot(ax=ax, facecolor='none', edgecolor='black',legend=True)
coords.plot(ax=ax, facecolor='none',edgecolor='red',linewidth=1.3)
ax.set_ylim([lat1, lat2])
ax.set_xlim([lon1, lon2])
image_hidden = ax.imshow(raster.read()[0])
cbar=fig.colorbar(image_hidden, ax=ax)