def NormalProbability(ys, jitter=0.0):
 n = len(ys)
 xs = np.random.normal(0, 1, n)
 xs.sort()
 if jitter:
  ys = Jitter(ys, jitter)
 else:
  ys = np.array(ys)
 ys.sort()
 return (xs, ys)

def NormalProbability ( ys , jitter = 0.0 ) : n = len ( ys ) xs = np . random . normal ( 0 , 1 , n ) xs . sort ( ) if jitter : ys = Jitter ( ys , jitter ) else : ys = np . array ( ys ) ys . sort ( ) return ( xs , ys )
generates data for a normal probability plot .