@@ -793,7 +793,8 @@ def __call__(self, *args, **kwargs):
793
793
794
794
return plot_backend .plot (data , kind = kind , ** kwargs )
795
795
796
- def line (self , x = None , y = None , ** kwargs ):
796
+ def line (self , x = None , y = None , figsize = None , subplots = False , sharex = None ,
797
+ sharey = False , layout = None , ** kwargs ):
797
798
"""
798
799
Plot Series or DataFrame as lines.
799
800
@@ -810,6 +811,22 @@ def line(self, x=None, y=None, **kwargs):
810
811
The values to be plotted.
811
812
Either the location or the label of the columns to be used.
812
813
By default, it will use the remaining DataFrame numeric columns.
814
+ figsize : a tuple (width, height) in inches
815
+ subplots : boolean, default False
816
+ Make separate subplots for each column
817
+ sharex : boolean, default True if ax is None else False
818
+ In case subplots=True, share x axis and set some x axis labels to invisible;
819
+ defaults to True if ax is None otherwise False if an ax is passed in;
820
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
821
+ labels for all axis in a figure!
822
+ sharey : boolean, default False
823
+ In case subplots=True, share y axis and set some y axis labels to subplots
824
+ layout : tuple (optional)
825
+ (rows, columns) for the layout of subplots
826
+ title : string or list
827
+ Title to use for the plot. If a string is passed, print the string at the
828
+ top of the figure. If a list is passed and subplots is True, print each item
829
+ in the list above the corresponding subplot.
813
830
**kwds
814
831
Keyword arguments to pass on to :meth:`DataFrame.plot`.
815
832
@@ -862,7 +879,8 @@ def line(self, x=None, y=None, **kwargs):
862
879
"""
863
880
return self (kind = "line" , x = x , y = y , ** kwargs )
864
881
865
- def bar (self , x = None , y = None , ** kwargs ):
882
+ def bar (self , x = None , y = None , figsize = None , subplots = False , sharex = None ,
883
+ sharey = False , layout = None , ** kwargs ):
866
884
"""
867
885
Vertical bar plot.
868
886
@@ -880,6 +898,22 @@ def bar(self, x=None, y=None, **kwargs):
880
898
y : label or position, optional
881
899
Allows plotting of one column versus another. If not specified,
882
900
all numerical columns are used.
901
+ figsize : a tuple (width, height) in inches
902
+ subplots : boolean, default False
903
+ Make separate subplots for each column
904
+ sharex : boolean, default True if ax is None else False
905
+ In case subplots=True, share x axis and set some x axis labels to invisible;
906
+ defaults to True if ax is None otherwise False if an ax is passed in;
907
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
908
+ labels for all axis in a figure!
909
+ sharey : boolean, default False
910
+ In case subplots=True, share y axis and set some y axis labels to subplots
911
+ layout : tuple (optional)
912
+ (rows, columns) for the layout of subplots
913
+ title : string or list
914
+ Title to use for the plot. If a string is passed, print the string at the
915
+ top of the figure. If a list is passed and subplots is True, print each item
916
+ in the list above the corresponding subplot.
883
917
**kwds
884
918
Additional keyword arguments are documented in
885
919
:meth:`DataFrame.plot`.
@@ -947,7 +981,8 @@ def bar(self, x=None, y=None, **kwargs):
947
981
"""
948
982
return self (kind = "bar" , x = x , y = y , ** kwargs )
949
983
950
- def barh (self , x = None , y = None , ** kwargs ):
984
+ def barh (self , x = None , y = None , figsize = None , subplots = False , sharex = None ,
985
+ sharey = False , layout = None , ** kwargs ):
951
986
"""
952
987
Make a horizontal bar plot.
953
988
@@ -963,6 +998,22 @@ def barh(self, x=None, y=None, **kwargs):
963
998
Column to be used for categories.
964
999
y : label or position, default All numeric columns in dataframe
965
1000
Columns to be plotted from the DataFrame.
1001
+ figsize : a tuple (width, height) in inches
1002
+ subplots : boolean, default False
1003
+ Make separate subplots for each column
1004
+ sharex : boolean, default True if ax is None else False
1005
+ In case subplots=True, share x axis and set some x axis labels to invisible;
1006
+ defaults to True if ax is None otherwise False if an ax is passed in;
1007
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
1008
+ labels for all axis in a figure!
1009
+ sharey : boolean, default False
1010
+ In case subplots=True, share y axis and set some y axis labels to subplots
1011
+ layout : tuple (optional)
1012
+ (rows, columns) for the layout of subplots
1013
+ title : string or list
1014
+ Title to use for the plot. If a string is passed, print the string at the
1015
+ top of the figure. If a list is passed and subplots is True, print each item
1016
+ in the list above the corresponding subplot.
966
1017
**kwds
967
1018
Keyword arguments to pass on to :meth:`DataFrame.plot`.
968
1019
@@ -1027,7 +1078,8 @@ def barh(self, x=None, y=None, **kwargs):
1027
1078
"""
1028
1079
return self (kind = "barh" , x = x , y = y , ** kwargs )
1029
1080
1030
- def box (self , by = None , ** kwargs ):
1081
+ def box (self , by = None , figsize = None , subplots = False , sharex = None , sharey = False ,
1082
+ layout = None , ** kwargs ):
1031
1083
r"""
1032
1084
Make a box plot of the DataFrame columns.
1033
1085
@@ -1049,6 +1101,22 @@ def box(self, by=None, **kwargs):
1049
1101
----------
1050
1102
by : string or sequence
1051
1103
Column in the DataFrame to group by.
1104
+ figsize : a tuple (width, height) in inches
1105
+ subplots : boolean, default False
1106
+ Make separate subplots for each column
1107
+ sharex : boolean, default True if ax is None else False
1108
+ In case subplots=True, share x axis and set some x axis labels to invisible;
1109
+ defaults to True if ax is None otherwise False if an ax is passed in;
1110
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
1111
+ labels for all axis in a figure!
1112
+ sharey : boolean, default False
1113
+ In case subplots=True, share y axis and set some y axis labels to subplots
1114
+ layout : tuple (optional)
1115
+ (rows, columns) for the layout of subplots
1116
+ title : string or list
1117
+ Title to use for the plot. If a string is passed, print the string at the
1118
+ top of the figure. If a list is passed and subplots is True, print each item
1119
+ in the list above the corresponding subplot.
1052
1120
**kwds : optional
1053
1121
Additional keywords are documented in
1054
1122
:meth:`DataFrame.plot`.
@@ -1077,7 +1145,8 @@ def box(self, by=None, **kwargs):
1077
1145
"""
1078
1146
return self (kind = "box" , by = by , ** kwargs )
1079
1147
1080
- def hist (self , by = None , bins = 10 , ** kwargs ):
1148
+ def hist (self , by = None , bins = 10 , figsize = None , subplots = False , sharex = None ,
1149
+ sharey = False , layout = None , ** kwargs ):
1081
1150
"""
1082
1151
Draw one histogram of the DataFrame's columns.
1083
1152
@@ -1092,6 +1161,22 @@ def hist(self, by=None, bins=10, **kwargs):
1092
1161
Column in the DataFrame to group by.
1093
1162
bins : int, default 10
1094
1163
Number of histogram bins to be used.
1164
+ figsize : a tuple (width, height) in inches
1165
+ subplots : boolean, default False
1166
+ Make separate subplots for each column
1167
+ sharex : boolean, default True if ax is None else False
1168
+ In case subplots=True, share x axis and set some x axis labels to invisible;
1169
+ defaults to True if ax is None otherwise False if an ax is passed in;
1170
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
1171
+ labels for all axis in a figure!
1172
+ sharey : boolean, default False
1173
+ In case subplots=True, share y axis and set some y axis labels to subplots
1174
+ layout : tuple (optional)
1175
+ (rows, columns) for the layout of subplots
1176
+ title : string or list
1177
+ Title to use for the plot. If a string is passed, print the string at the
1178
+ top of the figure. If a list is passed and subplots is True, print each item
1179
+ in the list above the corresponding subplot.
1095
1180
**kwds
1096
1181
Additional keyword arguments are documented in
1097
1182
:meth:`DataFrame.plot`.
@@ -1124,7 +1209,8 @@ def hist(self, by=None, bins=10, **kwargs):
1124
1209
"""
1125
1210
return self (kind = "hist" , by = by , bins = bins , ** kwargs )
1126
1211
1127
- def kde (self , bw_method = None , ind = None , ** kwargs ):
1212
+ def kde (self , bw_method = None , ind = None , figsize = None , subplots = False , sharex = None ,
1213
+ sharey = False , layout = None , ** kwargs ):
1128
1214
"""
1129
1215
Generate Kernel Density Estimate plot using Gaussian kernels.
1130
1216
@@ -1148,6 +1234,22 @@ def kde(self, bw_method=None, ind=None, **kwargs):
1148
1234
1000 equally spaced points are used. If `ind` is a NumPy array, the
1149
1235
KDE is evaluated at the points passed. If `ind` is an integer,
1150
1236
`ind` number of equally spaced points are used.
1237
+ figsize : a tuple (width, height) in inches
1238
+ subplots : boolean, default False
1239
+ Make separate subplots for each column
1240
+ sharex : boolean, default True if ax is None else False
1241
+ In case subplots=True, share x axis and set some x axis labels to invisible;
1242
+ defaults to True if ax is None otherwise False if an ax is passed in;
1243
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
1244
+ labels for all axis in a figure!
1245
+ sharey : boolean, default False
1246
+ In case subplots=True, share y axis and set some y axis labels to subplots
1247
+ layout : tuple (optional)
1248
+ (rows, columns) for the layout of subplots
1249
+ title : string or list
1250
+ Title to use for the plot. If a string is passed, print the string at the
1251
+ top of the figure. If a list is passed and subplots is True, print each item
1252
+ in the list above the corresponding subplot.
1151
1253
**kwds : optional
1152
1254
Additional keyword arguments are documented in
1153
1255
:meth:`pandas.%(this-datatype)s.plot`.
@@ -1234,7 +1336,8 @@ def kde(self, bw_method=None, ind=None, **kwargs):
1234
1336
1235
1337
density = kde
1236
1338
1237
- def area (self , x = None , y = None , ** kwargs ):
1339
+ def area (self , x = None , y = None , figsize = None , subplots = False , sharex = None ,
1340
+ sharey = False , layout = None , ** kwargs ):
1238
1341
"""
1239
1342
Draw a stacked area plot.
1240
1343
@@ -1250,6 +1353,22 @@ def area(self, x=None, y=None, **kwargs):
1250
1353
stacked : bool, default True
1251
1354
Area plots are stacked by default. Set to False to create a
1252
1355
unstacked plot.
1356
+ figsize : a tuple (width, height) in inches
1357
+ subplots : boolean, default False
1358
+ Make separate subplots for each column
1359
+ sharex : boolean, default True if ax is None else False
1360
+ In case subplots=True, share x axis and set some x axis labels to invisible;
1361
+ defaults to True if ax is None otherwise False if an ax is passed in;
1362
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
1363
+ labels for all axis in a figure!
1364
+ sharey : boolean, default False
1365
+ In case subplots=True, share y axis and set some y axis labels to subplots
1366
+ layout : tuple (optional)
1367
+ (rows, columns) for the layout of subplots
1368
+ title : string or list
1369
+ Title to use for the plot. If a string is passed, print the string at the
1370
+ top of the figure. If a list is passed and subplots is True, print each item
1371
+ in the list above the corresponding subplot.
1253
1372
**kwds : optional
1254
1373
Additional keyword arguments are documented in
1255
1374
:meth:`DataFrame.plot`.
@@ -1307,7 +1426,8 @@ def area(self, x=None, y=None, **kwargs):
1307
1426
"""
1308
1427
return self (kind = "area" , x = x , y = y , ** kwargs )
1309
1428
1310
- def pie (self , ** kwargs ):
1429
+ def pie (self , figsize = None , subplots = False , sharex = None ,
1430
+ sharey = False , layout = None , ** kwargs ):
1311
1431
"""
1312
1432
Generate a pie plot.
1313
1433
@@ -1322,6 +1442,22 @@ def pie(self, **kwargs):
1322
1442
y : int or label, optional
1323
1443
Label or position of the column to plot.
1324
1444
If not provided, ``subplots=True`` argument must be passed.
1445
+ figsize : a tuple (width, height) in inches
1446
+ subplots : boolean, default False
1447
+ Make separate subplots for each column
1448
+ sharex : boolean, default True if ax is None else False
1449
+ In case subplots=True, share x axis and set some x axis labels to invisible;
1450
+ defaults to True if ax is None otherwise False if an ax is passed in;
1451
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
1452
+ labels for all axis in a figure!
1453
+ sharey : boolean, default False
1454
+ In case subplots=True, share y axis and set some y axis labels to subplots
1455
+ layout : tuple (optional)
1456
+ (rows, columns) for the layout of subplots
1457
+ title : string or list
1458
+ Title to use for the plot. If a string is passed, print the string at the
1459
+ top of the figure. If a list is passed and subplots is True, print each item
1460
+ in the list above the corresponding subplot.
1325
1461
**kwds
1326
1462
Keyword arguments to pass on to :meth:`DataFrame.plot`.
1327
1463
@@ -1362,7 +1498,8 @@ def pie(self, **kwargs):
1362
1498
raise ValueError ("pie requires either y column or 'subplots=True'" )
1363
1499
return self (kind = "pie" , ** kwargs )
1364
1500
1365
- def scatter (self , x , y , s = None , c = None , ** kwargs ):
1501
+ def scatter (self , x , y , s = None , c = None , figsize = None , subplots = False , sharex = None ,
1502
+ sharey = False , layout = None , ** kwargs ):
1366
1503
"""
1367
1504
Create a scatter plot with varying marker point size and color.
1368
1505
@@ -1403,6 +1540,19 @@ def scatter(self, x, y, s=None, c=None, **kwargs):
1403
1540
1404
1541
- A column name or position whose values will be used to color the
1405
1542
marker points according to a colormap.
1543
+ figsize : a tuple (width, height) in inches
1544
+ subplots : boolean, default False
1545
+ Make separate subplots for each column
1546
+ sharex : boolean, default True if ax is None else False
1547
+ In case subplots=True, share x axis and set some x axis labels to invisible;
1548
+ defaults to True if ax is None otherwise False if an ax is passed in;
1549
+ Be aware, that passing in both an ax and sharex=True will alter all x axis
1550
+ labels for all axis in a figure!
1551
+ sharey : boolean, default False
1552
+ In case subplots=True, share y axis and set some y axis labels to subplots
1553
+ layout : tuple (optional)
1554
+ (rows, columns) for the layout of subplots
1555
+ title : string or list
1406
1556
1407
1557
**kwds
1408
1558
Keyword arguments to pass on to :meth:`DataFrame.plot`.
0 commit comments