Trying to figure out what's the best way to graph a point on a number line in python. Essentially trying to make something similar to the image below:
I've been trying to use Matplotlib to do this but can't seem to figure it out. Anyone know of a package or anything out there I can use?
Here ya go, official example from matplotlib, including example code and everything. To plot a labeled point on the line, just do a normal scatterplot with the y coordinates being 0:
https://matplotlib.org/examples/ticks_and_spines/tick-locators.html
I don't know of a specific package for this but you could do something like this in Matplotlib using hlines, vlines and plot.