Enter search terms or a module, class or function name.
DataFrame.plot(x=None,y=None,kind='line',ax=None,subplots=False,sharex=None,sharey=False,layout=None,figsize=None,use_index=True,title=None,grid=None,legend=True,style=None,logx=False,logy=False,loglog=False,xticks=None,yticks=None,xlim=None,ylim=None,rot=None,fontsize=None,colormap=None,table=False,yerr=None,xerr=None,secondary_y=False,sort_columns=False,**kwds)[source]¶Make plots of DataFrame using matplotlib / pylab.
New in version 0.17.0: Each plot kind has a corresponding method on theDataFrame.plot accessor:df.plot(kind='line') is equivalent todf.plot.line().
| Parameters: | data : DataFrame x : label or position, default None y : label or position, default None
kind : str
ax : matplotlib axes object, default None subplots : boolean, default False
sharex : boolean, default True if ax is None else False
sharey : boolean, default False
layout : tuple (optional)
figsize : a tuple (width, height) in inches use_index : boolean, default True
title : string
grid : boolean, default None (matlab style default)
legend : False/True/’reverse’
style : list or dict
logx : boolean, default False
logy : boolean, default False
loglog : boolean, default False
xticks : sequence
yticks : sequence
xlim : 2-tuple/list ylim : 2-tuple/list rot : int, default None
fontsize : int, default None
colormap : str or matplotlib colormap object, default None
colorbar : boolean, optional
position : float
layout : tuple (optional)
table : boolean, Series or DataFrame, default False
yerr : DataFrame, Series, array-like, dict and str
xerr : same types as yerr. stacked : boolean, default False in line and
sort_columns : boolean, default False
secondary_y : boolean or sequence, default False
mark_right : boolean, default True
kwds : keywords
|
|---|---|
| Returns: | axes : matplotlib.AxesSubplot or np.array of them |
Notes