I have a separate scrape thread function that appends values to a deque register. The following function reads the deque values and plots them to screen.
def display_plt():
for i in range((5000)) :
plt.grid()
plt.scatter(my_time, bid_price)
plt.pause(0.5)
plt.show()
#plt.clf()
plt.cla()
if i % 40 == 0:
print(bid_price)
t1 = Thread(target=scrape)
t1.start()
display_plt()
When I show the plot, the ordinate coordinated do not increase at a consistant amount. See picture. Note the top three numbers on the left. The ordinate values are from a 200 element rolling deque register. How do I fix this?

I found the issue. My data was in string format. Matplotlib was not converting it properly.