Read numbers from stdin and display a realtime plot

I want to read streaming numbers from stdin, and create a plot from them (x being the line number and y the number itself) which updates itself as new data is available. What’s the best approach here? (I also don’t want Makie because it’s buggy on macOS.)