def _rangeGen(data, std=1):
 dataStd = np.std(data)
 if (dataStd == 0):
  dataStd = 1
 minval = (np.min(data) - (std * dataStd))
 maxval = (np.max(data) + (std * dataStd))
 return (minval, maxval)

def _rangeGen ( data , std = 1 ) : dataStd = np . std ( data ) if ( dataStd == 0 ) : dataStd = 1 minval = ( np . min ( data ) - ( std * dataStd ) ) maxval = ( np . max ( data ) + ( std * dataStd ) ) return ( minval , maxval )
return reasonable min/max values to use given the data .