Using the Solid line

Hello everybody, I would like to use a solid line to plot a

    > pulse. In other words let's say I have a number of zeros
    > and ones and I would like to connect them like this with
    > solid lines:
use the plot kwarg steps, eg,

  plot(range(10), range(10), linestyle='steps')