Skip to content

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

@EdgarAnticonaP

Description

@EdgarAnticonaP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions