DataFrame.
plot
Make plots of Series or DataFrame.
Uses the backend specified by the option plotting.backend. By default, matplotlib is used.
plotting.backend
The object for which the method is called.
Only used if data is a DataFrame.
Allows plotting of one column versus another. Only used if data is a DataFrame.
The kind of plot to produce:
‘line’ : line plot (default)
‘bar’ : vertical bar plot
‘barh’ : horizontal bar plot
‘hist’ : histogram
‘box’ : boxplot
‘kde’ : Kernel Density Estimation plot
‘density’ : same as ‘kde’
‘area’ : area plot
‘pie’ : pie plot
‘scatter’ : scatter plot
‘hexbin’ : hexbin plot.
Use index as ticks for x axis.
Title to use for the plot. If a string is passed, print the string at the top of the figure. If a list is passed and subplots is True, print each item in the list above the corresponding subplot.
Axis grid lines.
Place legend on axis subplots.
The matplotlib line style per column.
Use log scaling or symlog scaling on x axis. .. versionchanged:: 0.25.0
Use log scaling or symlog scaling on y axis. .. versionchanged:: 0.25.0
Use log scaling or symlog scaling on both x and y axes. .. versionchanged:: 0.25.0
Values to use for the xticks.
Values to use for the yticks.
Rotation for ticks (xticks for vertical, yticks for horizontal plots).
Font size for xticks and yticks.
Colormap to select colors from. If string, load colormap with that name from matplotlib.
If True, plot colorbar (only relevant for ‘scatter’ and ‘hexbin’ plots).
Specify relative alignments for bar plot layout. From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center).
If True, draw a table using the data in the DataFrame 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.
See Plotting with Error Bars for detail.
Equivalent to yerr.
When using a secondary_y axis, automatically mark the column labels with “(right)” in the legend.
If True, boolean values can be plotted.
Backend to use instead of the backend specified in the option plotting.backend. For instance, ‘matplotlib’. Alternatively, to specify the plotting.backend for the whole session, set pd.options.plotting.backend.
pd.options.plotting.backend
New in version 1.0.0.
Options to pass to matplotlib plotting method.
matplotlib.axes.Axes
If the backend is not the default matplotlib one, the return value will be the object returned by the backend.
Notes
See matplotlib documentation online for more on this subject
If kind = ‘bar’ or ‘barh’, you can specify relative alignments for bar plot layout by position keyword. From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center)