From 7a5e82e446231eb27146f1a780a463ccfed1a52a Mon Sep 17 00:00:00 2001 From: TomDonoghue Date: Sat, 7 Oct 2017 13:18:18 -0700 Subject: [PATCH 1/3] DOC: Fix docstring for tsplot --- pandas/plotting/_timeseries.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pandas/plotting/_timeseries.py b/pandas/plotting/_timeseries.py index 3d04973ed0009..6392ac330228b 100644 --- a/pandas/plotting/_timeseries.py +++ b/pandas/plotting/_timeseries.py @@ -22,16 +22,22 @@ def tsplot(series, plotf, ax=None, **kwargs): """ - Plots a Series on the given Matplotlib axes or the current axes + Plots a Series on the given Matplotlib axes or the current axis. Parameters ---------- - axes : Axes series : Series - - Notes - _____ - Supports same kwargs as Axes.plot + plotf : function + Function to plot the given Series. + ax : matplotlib axes object, optional, default=None + Axis to plot upon. If none, plots on current axis. + kwargs + Additional keywords arguments passed to plotf. + + Returns + ------- + lines : list of matplotlib.lines.Line2D object + Resultant figure. """ # Used inferred freq is possible, need a test case for inferred From 55bd4a586b182894c60e65e758a596b4ac2a345f Mon Sep 17 00:00:00 2001 From: TomDonoghue Date: Sat, 7 Oct 2017 13:36:58 -0700 Subject: [PATCH 2/3] Fix typo --- pandas/plotting/_timeseries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/plotting/_timeseries.py b/pandas/plotting/_timeseries.py index 6392ac330228b..a975e906912e1 100644 --- a/pandas/plotting/_timeseries.py +++ b/pandas/plotting/_timeseries.py @@ -32,7 +32,7 @@ def tsplot(series, plotf, ax=None, **kwargs): ax : matplotlib axes object, optional, default=None Axis to plot upon. If none, plots on current axis. kwargs - Additional keywords arguments passed to plotf. + Additional keyword arguments passed to plotf. Returns ------- From 53265339708bd44ac5ee3b80a665b093615fb1d5 Mon Sep 17 00:00:00 2001 From: TomDonoghue Date: Sun, 8 Oct 2017 10:20:58 -0700 Subject: [PATCH 3/3] Fix type on 'axes' --- pandas/plotting/_timeseries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/plotting/_timeseries.py b/pandas/plotting/_timeseries.py index a975e906912e1..0d087f5d10123 100644 --- a/pandas/plotting/_timeseries.py +++ b/pandas/plotting/_timeseries.py @@ -22,7 +22,7 @@ def tsplot(series, plotf, ax=None, **kwargs): """ - Plots a Series on the given Matplotlib axes or the current axis. + Plots a Series on the given Matplotlib axes or the current axes. Parameters ---------- @@ -30,7 +30,7 @@ def tsplot(series, plotf, ax=None, **kwargs): plotf : function Function to plot the given Series. ax : matplotlib axes object, optional, default=None - Axis to plot upon. If none, plots on current axis. + Axes to plot upon. If none, plots on current axis. kwargs Additional keyword arguments passed to plotf.