I have used the following code to make a scatter plot look like this:

plt.scatter(x, y, marker='|')

[![enter image description here](https://i.stack.imgur.com/WSOCv.jpg)](https://i.stack.imgur.com/WSOCv.jpg)

Now however I want it to look something like this:

[![enter image description here](https://i.stack.imgur.com/Pyj3c.jpg)](https://i.stack.imgur.com/Pyj3c.jpg)

How do I do this? Please do ignore the background and the orange line thingy, that's a different graph altogether. Thanks!