Untitled



In [2]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np

In [23]:
x = np.random.randn(5)
y = np.array([1,2,3,4,5])
np.meshgrid(y,x,3)


Out[23]:
[array([[[1],
         [2],
         [3],
         [4],
         [5]],
 
        [[1],
         [2],
         [3],
         [4],
         [5]],
 
        [[1],
         [2],
         [3],
         [4],
         [5]],
 
        [[1],
         [2],
         [3],
         [4],
         [5]],
 
        [[1],
         [2],
         [3],
         [4],
         [5]]]), array([[[ 0.07270189],
         [ 0.07270189],
         [ 0.07270189],
         [ 0.07270189],
         [ 0.07270189]],
 
        [[-2.97063253],
         [-2.97063253],
         [-2.97063253],
         [-2.97063253],
         [-2.97063253]],
 
        [[-1.74260587],
         [-1.74260587],
         [-1.74260587],
         [-1.74260587],
         [-1.74260587]],
 
        [[ 0.4586156 ],
         [ 0.4586156 ],
         [ 0.4586156 ],
         [ 0.4586156 ],
         [ 0.4586156 ]],
 
        [[ 0.10201817],
         [ 0.10201817],
         [ 0.10201817],
         [ 0.10201817],
         [ 0.10201817]]]), array([[[3],
         [3],
         [3],
         [3],
         [3]],
 
        [[3],
         [3],
         [3],
         [3],
         [3]],
 
        [[3],
         [3],
         [3],
         [3],
         [3]],
 
        [[3],
         [3],
         [3],
         [3],
         [3]],
 
        [[3],
         [3],
         [3],
         [3],
         [3]]])]

In [ ]: