Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

add legends to y plots matplotlib

plt.plot(xs, y_1s, "-b", label="x^2")

plt.plot(xs, y_2s, "-g", label = "2x + 1")


plt.legend()


 
PREVIOUS NEXT
Tagged: #add #legends #plots #matplotlib
ADD COMMENT
Topic
Name
3+7 =