@@ -99,6 +99,8 @@ def tsplot(series, plotf, *args, **kwargs):
99
99
100
100
series = series .dropna ()
101
101
102
+ style = kwargs .pop ('style' , None )
103
+
102
104
if 'ax' in kwargs :
103
105
ax = kwargs .pop ('ax' )
104
106
else :
@@ -114,7 +116,7 @@ def tsplot(series, plotf, *args, **kwargs):
114
116
ax .date_axis_info = None
115
117
116
118
# format args and lot
117
- args = _check_plot_params (series , series .index , freq , * args )
119
+ args = _check_plot_params (series , series .index , freq , style , * args )
118
120
plotted = plotf (ax , * args , ** kwargs )
119
121
120
122
format_dateaxis (ax , ax .freq )
@@ -149,7 +151,7 @@ def get_datevalue(date, freq):
149
151
150
152
# Check and format plotting parameters
151
153
152
- def _check_plot_params (series , xdata , freq , * args ):
154
+ def _check_plot_params (series , xdata , freq , style , * args ):
153
155
"""
154
156
Defines the plot coordinates (and basic plotting arguments).
155
157
"""
@@ -160,7 +162,10 @@ def _check_plot_params(series, xdata, freq, *args):
160
162
if len (args ) == 0 :
161
163
if xdata is None :
162
164
raise ValueError (noinfo_msg )
163
- return (xdata , series )
165
+ if style is not None :
166
+ return (xdata , series , style )
167
+ else :
168
+ return (xdata , series )
164
169
165
170
output = []
166
171
while len (remaining ) > 0 :
0 commit comments