df =
id_easy latitude longitude cluster
0 a1 45.1076 7.4920 0
0 b1 45.1064 7.5013 0
1 c1 44.9498 7.5010 1
1 d1 44.9656 7.5084 1
2 e1 45.0846 7.5277 2
2 f1 45.1650 7.7950 2
I want to visualize:
- longitude and latitude values of
id_easya1b1ofcluster0in different colors and the rest of the data gray - longitude and latitude values of
id_easyc1d1ofcluster1in different colors and the rest of the data gray - longitude and latitude values of
id_easye1f1ofcluster2in different colors and the rest of the data gray
I have this:
for index_in_red in df.index.unique():
my_dpi=96
plt.figure(figsize=(600/my_dpi, 400/my_dpi), dpi=my_dpi)
plt.plot(df.loc[df.index != index_in_red,'longitude'],df.loc[df.index != index_in_red,'latitude'] ,
color='silver', marker='o',linestyle='',linewidth=50, markersize=2)
plt.plot(df.loc[index_in_red,'longitude'],df.loc[index_in_red,'latitude'] ,
color='maroon',marker='o',linestyle='',linewidth=2, markersize=3)
plt.show()
But it gives me all values of id_easy in maroon color, but I want them to be in different color
Desired output:
For every values of id_easy I have different color




