@@ -3385,25 +3385,13 @@ def area(self, x=None, y=None, **kwds):
3385
3385
.. plot::
3386
3386
:context: close-figs
3387
3387
3388
- >>> df = pd.DataFrame({
3389
- ... 'sales': [3, 2, 3, 9, 10, 6],
3390
- ... 'signups': [5, 5, 6, 12, 14, 13],
3391
- ... 'visits': [20, 42, 28, 62, 81, 50],
3392
- ... }, index=pd.date_range(start='2018/01/01', end='2018/07/01',
3393
- ... freq='M'))
3394
3388
>>> ax = df.plot.area(stacked=False)
3395
3389
3396
- Draw an area plot for each metric :
3390
+ Draw an area plot for a single column :
3397
3391
3398
3392
.. plot::
3399
3393
:context: close-figs
3400
3394
3401
- >>> df = pd.DataFrame({
3402
- ... 'sales': [3, 2, 3, 9, 10, 6],
3403
- ... 'signups': [5, 5, 6, 12, 14, 13],
3404
- ... 'visits': [20, 42, 28, 62, 81, 50],
3405
- ... }, index=pd.date_range(start='2018/01/01', end='2018/07/01',
3406
- ... freq='M'))
3407
3395
>>> ax = df.plot.area(y='sales')
3408
3396
3409
3397
Draw with a different `x`:
@@ -3414,9 +3402,8 @@ def area(self, x=None, y=None, **kwds):
3414
3402
>>> df = pd.DataFrame({
3415
3403
... 'sales': [3, 2, 3],
3416
3404
... 'visits': [20, 42, 28],
3417
- ... 'day': ['Monday', 'Tuesday', 'Wednesday'],
3418
- ... }, index=pd.date_range(start='2018/01/01', end='2018/07/01',
3419
- ... freq='M'))
3405
+ ... 'day': [1, 2, 3],
3406
+ ... })
3420
3407
>>> ax = df.plot.area(x='day')
3421
3408
"""
3422
3409
return self (kind = 'area' , x = x , y = y , ** kwds )
0 commit comments