I need to plot poly-lines from a geopandas file, where every line has its own color based on same value (see plot). I am using this script for plotting:
line = geopandas.read_file(shapefile.shp)
ax = plt.subplots()
for i in range(0,3):
line.loc[[i],'geometry'].plot( ax = ax )
Do you know how to color every line based on its relative value and add a colormap legend on the side?
Thank you!!

