I want to get insight for some values. I have two vectors of 300 dimensions, and want to compare them coordinate by coordinate. So I thought to plot each point with a different color, but the color for a dimension to be the same so that I would know which coordinates are lying where.
I have the below code, which I modeled on some results at stackoverflow.
colors = itertools.cycle(["r", "g", "b"])
for d_in in inp_samples:
clr = next(colors)
plt.scatter(len(inp_samples), d_in, c=clr)
colors = itertools.cycle(["r", "g", "b"])
for d_out in out_samples:
clr = next(colors)
plt.scatter(len(out_samples), d_out, c=clr)
But the plot I am getting is very weird. I was expecting it would be scattered but it is something like this:
I also tried this:
colors = cm.jet(np.linspace(0, 1, 300))
for d_in, d_out, c in zip(inp_samples, out_samples, colors):
plt.scatter(len(inp_samples), d_in, c=c)
plt.scatter(len(out_samples), d_out, c=c)
Can anyone help in understanding what I am doing wrong?