import matplotlib
.pyplot
as plt
import numpy
as np
x
= np
.linspace
(1,10,10)
y
= np
.sin
(x
)
plt
.step
(x
,y
,color
="#8dd3c7", where
="pre",lw
=2)
plt
.xlim
(0,11)
plt
.xticks
(np
.arange
(1,11,1))
plt
.ylim
(-1.2,1.2)
plt
.show
()
转载请注明原文地址:https://blackberry.8miu.com/read-6768.html