

def convert_gmm_to_box(gmm, color, alpha):
    midpoint = gmm.means_
    std = (3 * np.sqrt(clf.covars_))
    width = std[:, 0]
    height = std[:, 1]
    upper_left_point = ((midpoint[:, 0] - (width // 2)), (midpoint[:, 1] - (height // 2)))
    return Rectangle(upper_left_point, width, height, ec=upper_left_point, fc=color, alpha=alpha)

dataset/ETHPy150Open sklearn-theano/sklearn-theano/examples/plot_multiple_localization.py convert_gmm_to_box/VarMisuse@98/120 `color`->`upper_left_point`