I'm currently trying to make a plot where there are only two possible y values 1 and 2, and no matter what I try or how large or small I make the figure, the two points are super far apart. Is there a way to make the two y points closer to each other?
I essentially would like to make the individual points on the sample graph below more visible.
this is the code I'm currently using to make my figure:
groups = df.groupby("response")
for name, group in groups:
plt.plot(group["trials"], group["tcolor"], marker="o", linestyle="", label=name)
plt.legend()
plt.show()