Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions pandas/tools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1304,8 +1304,8 @@ class HistPlot(MPLPlot):
def plot_frame(frame=None, x=None, y=None, subplots=False, sharex=True,
sharey=False, use_index=True, figsize=None, grid=False,
legend=True, rot=None, ax=None, style=None, title=None,
xlim=None, ylim=None, logy=False, xticks=None, yticks=None,
kind='line', sort_columns=False, fontsize=None,
xlim=None, ylim=None, logx=False, logy=False, xticks=None,
yticks=None, kind='line', sort_columns=False, fontsize=None,
secondary_y=False, **kwds):

"""
Expand Down Expand Up @@ -1342,6 +1342,8 @@ def plot_frame(frame=None, x=None, y=None, subplots=False, sharex=True,
kind : {'line', 'bar', 'barh'}
bar : vertical bar plot
barh : horizontal bar plot
logx : boolean, default False
For line plots, use log scaling on x axis
logy : boolean, default False
For line plots, use log scaling on y axis
xticks : sequence
Expand Down Expand Up @@ -1383,17 +1385,17 @@ def plot_frame(frame=None, x=None, y=None, subplots=False, sharex=True,
return plot_series(frame[y], label=y, kind=kind, use_index=use_index,
rot=rot, xticks=xticks, yticks=yticks,
xlim=xlim, ylim=ylim, ax=ax, style=style,
grid=grid, logy=logy, secondary_y=secondary_y,
title=title, figsize=figsize, fontsize=fontsize,
**kwds)
grid=grid, logx=logx, logy=logy,
secondary_y=secondary_y, title=title,
figsize=figsize, fontsize=fontsize, **kwds)

plot_obj = klass(frame, kind=kind, subplots=subplots, rot=rot,
legend=legend, ax=ax, style=style, fontsize=fontsize,
use_index=use_index, sharex=sharex, sharey=sharey,
xticks=xticks, yticks=yticks, xlim=xlim, ylim=ylim,
title=title, grid=grid, figsize=figsize, logy=logy,
sort_columns=sort_columns, secondary_y=secondary_y,
**kwds)
title=title, grid=grid, figsize=figsize, logx=logx,
logy=logy, sort_columns=sort_columns,
secondary_y=secondary_y, **kwds)
plot_obj.generate()
plot_obj.draw()
if subplots:
Expand All @@ -1403,8 +1405,8 @@ def plot_frame(frame=None, x=None, y=None, subplots=False, sharex=True,

def plot_series(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, logy=False,
secondary_y=False, **kwds):
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

Expand All @@ -1424,6 +1426,8 @@ def plot_series(series, label=None, kind='line', use_index=True, rot=None,
matplotlib line style to use
ax : matplotlib axis object
If not passed, uses gca()
logx : boolean, default False
For line plots, use log scaling on x axis
logy : boolean, default False
For line plots, use log scaling on y axis
xticks : sequence
Expand Down Expand Up @@ -1464,7 +1468,7 @@ def plot_series(series, label=None, kind='line', use_index=True, rot=None,
if label is None:
label = series.name

plot_obj = klass(series, kind=kind, rot=rot, logy=logy,
plot_obj = klass(series, kind=kind, rot=rot, logx=logx, logy=logy,
ax=ax, use_index=use_index, style=style,
xticks=xticks, yticks=yticks, xlim=xlim, ylim=ylim,
legend=legend, grid=grid, label=label,
Expand Down