Skip to content

Commit fe39d3c

Browse files
author
David BROCHART
committed
Fix for issue pandas-dev#9671
1 parent d7d868f commit fe39d3c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

pandas/tools/plotting.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -871,12 +871,17 @@ def _validate_color_args(self):
871871
"simultaneously. Using 'color'")
872872

873873
if 'color' in self.kwds and self.style is not None:
874+
if com.is_list_like(self.style):
875+
styles = self.style
876+
else:
877+
styles = [self.style]
874878
# need only a single match
875-
if re.match('^[a-z]+?', self.style) is not None:
876-
raise ValueError("Cannot pass 'style' string with a color "
877-
"symbol and 'color' keyword argument. Please"
878-
" use one or the other or pass 'style' "
879-
"without a color symbol")
879+
for s in styles:
880+
if re.match('^[a-z]+?', s) is not None:
881+
raise ValueError("Cannot pass 'style' string with a color "
882+
"symbol and 'color' keyword argument. Please"
883+
" use one or the other or pass 'style' "
884+
"without a color symbol")
880885

881886
def _iter_data(self, data=None, keep_index=False, fillna=None):
882887
if data is None:

0 commit comments

Comments
 (0)