0

My scatter plot looks like this:

The following is the command is used to plot the scatter plot:

 plt.scatter(x,y[:,0],c="c", alpha=0.3)

Here, both x and y are numpy arrays. The values look like:

 x:
       array([  36259516,   36259544,   36259600, ..., 9251680654, 
        9251680675, 9296284549], dtype=int64)      

 y:
      array([[ 0.91122632],
      [ 0.79788549],
      [ 0.87083686],
       ..., 
      [ 0.77459159],
      [ 0.69324043],
      [ 0.77459159]])

Note: In short, I wanna plot all the values 'y' values of unique 'x'.

enter image description here

If you could see, even if passing different array on x-axis , when the graph is plotted , I could notice both axis representing y-axis values.

Can anyone help me solve this issue.

Marcelo BD
  • 229
  • 3
  • 8

0 Answers0