@@ -507,86 +507,76 @@ class PlotAccessor(PandasObject):
507
507
Parameters
508
508
----------
509
509
data : Series or DataFrame
510
- The object for which the method is called
510
+ The object for which the method is called.
511
511
x : label or position, default None
512
512
Only used if data is a DataFrame.
513
513
y : label, position or list of label, positions, default None
514
514
Allows plotting of one column versus another. Only used if data is a
515
515
DataFrame.
516
- kind : str
517
- The kind of plot to produce:
518
-
519
- - 'line' : line plot (default)
520
- - 'bar' : vertical bar plot
521
- - 'barh' : horizontal bar plot
522
- - 'hist' : histogram
523
- - 'box' : boxplot
524
- - 'kde' : Kernel Density Estimation plot
525
- - 'density' : same as 'kde'
526
- - 'area' : area plot
527
- - 'pie' : pie plot
528
- - 'scatter' : scatter plot
529
- - 'hexbin' : hexbin plot
516
+ kind : {'line', 'bar', 'barh', 'hist', 'box', 'kde', 'density', 'area', \
517
+ 'pie','scatter','hexbin'}, default 'line'
518
+ The kind of plot to produce.
530
519
figsize : a tuple (width, height) in inches
531
520
use_index : bool, default True
532
- Use index as ticks for x axis
521
+ Use index as ticks for x axis.
533
522
title : str or list
534
523
Title to use for the plot. If a string is passed, print the string
535
524
at the top of the figure. If a list is passed and `subplots` is
536
525
True, print each item in the list above the corresponding subplot.
537
526
grid : bool, default None (matlab style default)
538
- Axis grid lines
539
- legend : False/True/ 'reverse'
540
- Place legend on axis subplots
527
+ Axis grid lines.
528
+ legend : bool or 'reverse'
529
+ Place legend on axis subplots.
541
530
style : list or dict
542
- The matplotlib line style per column
531
+ The matplotlib line style per column.
543
532
logx : bool or 'sym', default False
544
- Use log scaling or symlog scaling on x axis
533
+ Use log scaling or symlog scaling on x axis.
534
+
545
535
.. versionchanged:: 0.25.0
546
536
547
- logy : bool or 'sym' default False
548
- Use log scaling or symlog scaling on y axis
537
+ logy : bool or 'sym', default False
538
+ Use log scaling or symlog scaling on y axis.
539
+
549
540
.. versionchanged:: 0.25.0
550
541
551
542
loglog : bool or 'sym', default False
552
- Use log scaling or symlog scaling on both x and y axes
543
+ Use log scaling or symlog scaling on both x and y axes.
544
+
553
545
.. versionchanged:: 0.25.0
554
546
555
547
xticks : sequence
556
548
Values to use for the xticks.
557
549
yticks : sequence
558
550
Values to use for the yticks.
559
- xlim : 2- tuple/ list
560
- ylim : 2- tuple/ list
561
- rot : int, default None
551
+ xlim : tuple of (int, int) or list of int
552
+ ylim : tuple of (int, int) or list of int
553
+ rot : int, optional
562
554
Rotation for ticks (xticks for vertical, yticks for horizontal
563
- plots)
564
- fontsize : int, default None
555
+ plots).
556
+ fontsize : int, optional
565
557
Font size for xticks and yticks.
566
- colormap : str or matplotlib colormap object, default None
558
+ colormap : str or matplotlib colormap object, optional
567
559
Colormap to select colors from. If string, load colormap with that
568
560
name from matplotlib.
569
561
colorbar : bool, optional
570
562
If True, plot colorbar (only relevant for 'scatter' and 'hexbin'
571
- plots)
572
- position : float
563
+ plots).
564
+ position : float, default 0.5, meaning center
573
565
Specify relative alignments for bar plot layout.
574
- From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5
575
- (center)
566
+ From 0 (left/bottom-end) to 1 (right/top-end).
576
567
table : bool, Series or DataFrame, default False
577
568
If True, draw a table using the data in the DataFrame and the data
578
569
will be transposed to meet matplotlib's default layout.
579
- If a Series or DataFrame is passed, use passed data to draw a
580
- table.
581
- yerr : DataFrame, Series, array-like, dict and str
570
+ If a Series or DataFrame is passed, use passed data to draw a table.
571
+ yerr : DataFrame, Series, array-like, dict or str
582
572
See :ref:`Plotting with Error Bars <visualization.errorbars>` for
583
573
detail.
584
- xerr : DataFrame, Series, array-like, dict and str
574
+ xerr : DataFrame, Series, array-like, dict or str
585
575
Equivalent to yerr.
586
576
mark_right : bool, default True
587
577
When using a secondary_y axis, automatically mark the column
588
- labels with "(right)" in the legend
589
- include_bool : bool, default is False
578
+ labels with "(right)" in the legend.
579
+ include_bool : bool, default False
590
580
If True, boolean values can be plotted.
591
581
**kwargs
592
582
Options to pass to matplotlib plotting method.
0 commit comments