摘要:
from matplotlib import pyplot import numpy n=1024 x=numpy.random.normal(0,1,1024) y=numpy.random.normal(0,1,1024) t=numpy.arctan2(x,y) #代表颜色的数量值 #pypl 阅读全文
posted @ 2020-06-19 11:45
马蹄哒哒
阅读(222)
评论(0)
推荐(0)
摘要:
import numpy from matplotlib import pyplot x=numpy.linspace(-3,3,50) y=2*x+1 pyplot.figure(num=1,figsize=(5,5)) pyplot.plot(x,y,linewidth=10,zorder=1) 阅读全文
posted @ 2020-06-19 11:35
马蹄哒哒
阅读(156)
评论(0)
推荐(0)
摘要:
import numpy a=numpy.arange(1,25).reshape(8,3) #对二维进行数组转置 b=numpy.transpose(a) c=a.transpose() d=a.T #print(d) print('对于三维a[i][j][k]进行转置,默认的将i和k交换,j位置 阅读全文
posted @ 2020-06-19 11:20
马蹄哒哒
阅读(784)
评论(0)
推荐(0)
摘要:
import numpy x=numpy.arange(9) array([0, 1, 2, 3, 4, 5, 6, 7, 8]) #对一维数组进行分隔 a=numpy.split(x,3) #将数组平均分成3份 #传递数组按位置进行分隔 b=numpy.split(x,[3,5]) print(a 阅读全文
posted @ 2020-06-19 11:04
马蹄哒哒
阅读(349)
评论(0)
推荐(0)

浙公网安备 33010602011771号