pandas.Series.plot¶
- Series.plot(series, label=None, kind='line', use_index=True, rot=None, xticks=None, yticks=None, xlim=None, ylim=None, ax=None, style=None, grid=None, legend=False, logx=False, logy=False, secondary_y=False, **kwds)¶
Plot the input series with the index on the x-axis using matplotlib
Parameters : label : label argument to provide to plot
kind : {‘line’, ‘bar’, ‘barh’, ‘kde’, ‘density’, ‘area’}
line : line plot bar : vertical bar plot barh : horizontal bar plot kde/density : Kernel Density Estimation plot area : area plot
use_index : boolean, default True
Plot index as axis tick labels
rot : int, default None
Rotation for tick labels
xticks : sequence
Values to use for the xticks
yticks : sequence
Values to use for the yticks
xlim : 2-tuple/list
ylim : 2-tuple/list
ax : matplotlib axis object
If not passed, uses gca()
style : string, default matplotlib default
matplotlib line style to use
grid : matplotlib grid
legend: matplotlib legend
logx : boolean, default False
Use log scaling on x axis
logy : boolean, default False
Use log scaling on y axis
loglog : boolean, default False
Use log scaling on both x and y axes
secondary_y : boolean or sequence of ints, default False
If True then y-axis will be on the right
figsize : a tuple (width, height) in inches
position : float
Specify relative alignments for bar plot layout. From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center)
table : boolean, Series or DataFrame, default False
If True, draw a table using the data in the Series and the data will be transposed to meet matplotlib’s default layout. If a Series or DataFrame is passed, use passed data to draw a table.
kwds : keywords
Options to pass to matplotlib plotting method
Notes
See matplotlib documentation online for more on this subject