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