pandas area plot interpolation / step style
Question: Is there a way to disable the interpolation in the pandas area plot? I would
like to get a "step-style" area plot. E.g. in the normal line plot it is
possible to specify:

    
    
    import pandas as pd
    df = pd.DataFrame({'x':range(10)})
    df.plot(drawstyle = 'steps') # this works
    #df.plot(kind = 'area', drawstyle = 'steps') # this does not work
    

I am using python 2.7 and pandas 0.14.1.

Many thanks in advance.


Answer: As far as I can tell, `df.plot(drawstyle="steps")` doesn't even store the
calculated step vertices;

    
    
    out = df.plot(kind = 'line', drawstyle = 'steps') # stepped, not filled
    stepline = out.get_lines()[0]
    print(stepline.get_data())
    

> (array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), array([0, 1, 2, 3, 4, 5, 6, 7, 8,
> 9]))

so I think you'll have to roll your own. Which is just inserting
`(x[i+1],y[i])` directly after every `(x[i],y[i])` in the list of points:

    
    
    df = pd.DataFrame({'x':range(10)})
    x = df.x.values
    xx = np.array([x,x])
    xx.flatten('F')
    doubled = xx.flatten('F') # NOTE! if x, y weren't the same, need a yy
    plt.fill_between(doubled[:-1], doubled[1:], label='area')
    ax = plt.gca()
    df.plot(drawstyle = 'steps', color='red', ax=ax) 
    

![enter image description here](http://i.stack.imgur.com/T1Piy.png)

