MML-Companion icon indicating copy to clipboard operation
MML-Companion copied to clipboard

ERROR -6.5 Gaussian Distribution - The contours on the bottom left are normalized in contrast with the distributions of the samples on the walls.

Open EdgarAnticonaP opened this issue 3 years ago • 0 comments

TypeError: plot() missing 1 required positional argument: 'ys'

for

Figure setup.

fig = plt.figure(figsize = (15,16), tight_layout = True) gs = GridSpec(2, 2) ax = fig.add_subplot(gs[1,0], projection='3d') ax.set_xlim3d(-scale3D,scale3D); ax.set_ylim3d(-scale3D,scale3D); ax.grid(b=None) n = 300

Figure setup.

Scatter and contour plot.

ax.scatter(currData[:n][:,0],currData[:n][:,1],np.zeros(n), alpha = .5, s = 1) sns.kdeplot(currData[:,0], currData[:,1],n_levels=15, cmap="viridis", bw = 1) ax.scatter(np.mean(currData[:,0]), np.mean(currData[:,1]), marker = "x", c = "r") # Mean.

Scatter and contour plot.

EdgarAnticonaP avatar Jul 06 '22 06:07 EdgarAnticonaP