import matplotlib
.pyplot
as plt
import numpy
as np
x
= np
.linspace
(0.05,10,1000)
y
= np
.sin
(x
)
plt
.plot
(x
,y
,ls
="-.",lw
=2,c
="c",label
="plot figure")
plt
.legend
()
plt
.text
(3.10,0.09,"y=sin(x)",weight
="bold",color
="b")
plt
.show
()
转载请注明原文地址:https://blackberry.8miu.com/read-21.html