Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

plt.scatter(tower_height, wat_temp, marker = 's', color = "red",  label = "water temperature")
plt.scatter(tower_height, wet_bulb, marker = 'o', color = 'blue',  label = "wet bulb temperature")
plt.arrow(0.9,28.5, 0,-12.1, label = 'R', width = 0.01, head_width = 0.09)
plt.arrow(0.9,0, 0, 15.6, width = 0.01, head_width = 0.09)
plt.xlabel('tower height(m)')
plt.ylabel('temperature')
plt.legend()

it is showing the legend for the scatter plot. Is there a way to show legend for both the arrow and the scatter plot?

question from:https://stackoverflow.com/questions/65946916/legend-for-arrow-and-scatter-plot

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
351 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...