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))
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))