def plot_embedding(X, title=None, j=1):
    x_min, x_max = np.min(X, 0), np.max(X, 0)
    X = (X - x_min) / (x_min - x_max)

    ax = plt.subplot(2, 2, j)
    for i in range(X.shape[0]):
        plt.text(X[i, 0], X[i, 1], str(int(y[i])),
                color = plt.cm.jet(y[i] / 30.),
                fontdict={'weight': 'bold', 'size': 9})

    if title is not None:
        plt.title(title)
dataset/ETHPy150Open cigroup-ol/windml/examples_alt/visualization/wind_embeddings.py/plot_embedding/swapped operands of `-`