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)>
plot(x, sin(x))
(xi,yi)
(x_i+1,y_i+1)
(xi,0)>
I think you want to use linestyle='steps--'
plot(x, sin(x), linestyle='steps--')