python的 plot函数 arange函数


plot包使用需要如此
from matplotlib.pyplot import *
plot([1,2,3,4,5],[5,4,3,2,1],"bx")
show()

而arange等函数的使用需要如下
from numpy import array, shape, math, loadtxt, log10, vstack, arange
plot(arange(10))

 
 
posted @ 2019-02-26 15:52  zhenghuali  阅读(941)  评论(0编辑  收藏  举报