I use png files for matplotlib scatter plot’s markers.
How I can set plot’s legend with those png files?
def getImage(path):
return OffsetImage(mp.imread(path, format='png'), zoom=.5)
for idx, row in df.iterrows():
ab = AnnotationBbox(getImage(dimg[idx]), (dlat[idx], dlon[idx]), frameon=False)
mp.gca().add_artist(ab)
Please help.
Thank you!
New contributor
user25459677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.