plot.
area
Draw a stacked area plot.
An area plot displays quantitative data visually. This function wraps the plotly area function.
Coordinates for the X axis. By default uses the index.
Column to plot. By default uses all columns.
Area plots are stacked by default. Set to False to create a unstacked plot (matplotlib-only).
Additional keyword arguments are documented in DataFrame.plot().
DataFrame.plot()
plotly.graph_objs.Figure
Return an custom object when backend!=plotly. Return an ndarray when subplots=True (matplotlib-only).
backend!=plotly
subplots=True
Examples
For Series
>>> df = ps.DataFrame({ ... 'sales': [3, 2, 3, 9, 10, 6], ... 'signups': [5, 5, 6, 12, 14, 13], ... 'visits': [20, 42, 28, 62, 81, 50], ... }, index=pd.date_range(start='2018/01/01', end='2018/07/01', ... freq='M')) >>> df.sales.plot.area()
For DataFrame
>>> df = ps.DataFrame({ ... 'sales': [3, 2, 3, 9, 10, 6], ... 'signups': [5, 5, 6, 12, 14, 13], ... 'visits': [20, 42, 28, 62, 81, 50], ... }, index=pd.date_range(start='2018/01/01', end='2018/07/01', ... freq='M')) >>> df.plot.area()