Чтобы добавить больше очков:
import numpy as np
import matplotlib.pyplot as plt
def normal_pdf(x, mean, var):
return np.exp(-(x - mean)**2 / (2*var))
def add_point(mu, std, ax):
x = normal_pdf(xx, mu, std)
y = normal_pdf(yy, xmax-mu, std)
weights = np.array(np.meshgrid(x, y)).prod(0)
ax.imshow(weights, extent=(xmin, xmax, ymin, ymax), cmap=plt.cm.Blues, alpha=0.5)
plt.plot(mu, mu, "bo")
xmin, xmax, ymin, ymax = (0, 150, 0, 150)
N = 1000
xx = np.linspace(xmin, xmax, N)
yy = np.linspace(ymin, ymax, N)
fig, _ax = plt.subplots()
add_point(50, 75, _ax)
add_point(10, 25, _ax)
plt.tight_layout()
plt.show()