def plotting_positions(data, alpha=0.4, beta=0.4):
 data = ma.array(data, copy=False).reshape(1, (-1))
 n = data.count()
 plpos = np.empty(data.size, dtype=float)
 plpos[n:] = 0
 plpos[data.argsort()[:n]] = ((np.arange(1, (n + 1)) - alpha) / (((n + 1.0) - alpha) - beta))
 return ma.array(plpos, mask=data._mask)

def plotting_positions ( data , alpha = 0.4 , beta = 0.4 ) : data = ma . array ( data , copy = False ) . reshape ( 1 , ( - 1 ) ) n = data . count ( ) plpos = np . empty ( data . size , dtype = float ) plpos [ n : ] = 0 plpos [ data . argsort ( ) [ : n ] ] = ( ( np . arange ( 1 , ( n + 1 ) ) - alpha ) / ( ( ( n + 1.0 ) - alpha ) - beta ) ) return ma . array ( plpos , mask = data . _mask )
returns plotting positions for the data .