plot-components.py [90:101]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    print(f'Saving to {fname}')
    fig.tight_layout()
    fig.subplots_adjust(wspace=0, hspace=0)
    fig.savefig(fname)
    os.system(f"convert {fname} -trim {fname}")


def plot_density(xs, ax):
    estimated_density = gaussian_kde(
        utils.euclidean_to_spherical(xs).T, 0.2)
    heatmap = estimated_density(tp.T).reshape(2 * NUM_POINTS, NUM_POINTS)
    plot_heatmap(heatmap, ax)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



plot-demo.py [95:105]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    print(f'Saving to {fname}')
    fig.tight_layout()
    fig.subplots_adjust(wspace=0, hspace=0)
    fig.savefig(fname)
    os.system(f"convert {fname} -trim {fname}")

def plot_density(xs, ax):
    estimated_density = gaussian_kde(
        utils.euclidean_to_spherical(xs).T, 0.2)
    heatmap = estimated_density(tp.T).reshape(2 * NUM_POINTS, NUM_POINTS)
    plot_heatmap(heatmap, ax)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



