I want to plot(x, sin(x)) but instead of a line from (xi,yi) to (x_i+1,y_i+1) I want a vertical line to each point from (xi,0) to (xi,yi) as sometimes interpolation between the points makes no sense (e.g. quantized data) (and it looks much better with that vertical line than without).
Much like the stem plot below (from the matlab docs) but with the option of being able to turn off the circles and the "-" between points. Unfortunately, I couldn't find an appropriate plotting function in the matplotlib documentation myself.


