I want to create a scatter plot (for discrete x and only one dot per x) and for each dot, I want to visualize the distance to its expected value with a line, preferably in Seaborn.
Basically, I want something like this (taken from this post), but I want the error bars to only go into one direction, not up and down. The line of the error bar should end where my expected value is.
Edit: An example.
Some code:
import matplotlib.pyplot as plt
some_y=[1,2,3,7,9,10]
expected_y=[2, 2.5, 2, 5, 8.5, 9.5]
plt.plot(some_y, ".", color="blue")
plt.plot(expected_y, ".", color="red")
plt.show()
Also, it does not have to look exactly like this. Just something in this direction.