How I Used Python to Create My First NFT Artwork | by Gianluca Malato | Feb, 2022

import numpy as np
from scipy.stats import multivariate_normal
import seaborn as sns
import matplotlib.pyplot as plt
import itertools
x = np.linspace(-3,3,100)
y = np.linspace(-3,3,100)
xy = record(itertools.product(x,y))
f1 = multivariate_normal(imply=[-1.5,-1.5],cov=1)
f2 = multivariate_normal(imply=[1.5,1.5],cov=1)
kernel = lambda x:f1.pdf(x) + f2.pdf(x)
z = [kernel([a,b]) for (a,b) in xy]
plt.rcParams["figure.figsize"] = [7.00, 7]ax = sns.heatmap(np.array(z).reshape(len(x),len(y)),
yticklabels=False, xticklabels=False, cbar=False)

More Posts