@@ -2036,12 +2036,6 @@ def test_line_colors(self):
2036
2036
self ._check_colors (ax .get_lines (), linecolors = custom_colors )
2037
2037
tm .close ()
2038
2038
2039
- with pytest .raises (ValueError ):
2040
- # Color contains shorthand hex value results in ValueError
2041
- custom_colors = ["#F00" , "#00F" , "#FF0" , "#000" , "#FFF" ]
2042
- # Forced show plot
2043
- _check_plot_works (df .plot , color = custom_colors )
2044
-
2045
2039
@pytest .mark .slow
2046
2040
def test_dont_modify_colors (self ):
2047
2041
colors = ["r" , "g" , "b" ]
@@ -2093,14 +2087,6 @@ def test_line_colors_and_styles_subplots(self):
2093
2087
self ._check_colors (ax .get_lines (), linecolors = [c ])
2094
2088
tm .close ()
2095
2089
2096
- with pytest .raises (ValueError ):
2097
- # Color contains shorthand hex value results in ValueError
2098
- custom_colors = ["#F00" , "#00F" , "#FF0" , "#000" , "#FFF" ]
2099
- # Forced show plot
2100
- # _check_plot_works adds an ax so catch warning. see GH #13188
2101
- with tm .assert_produces_warning (UserWarning ):
2102
- _check_plot_works (df .plot , color = custom_colors , subplots = True )
2103
-
2104
2090
rgba_colors = [cm .jet (n ) for n in np .linspace (0 , 1 , len (df ))]
2105
2091
for cmap in ["jet" , cm .jet ]:
2106
2092
axes = df .plot (colormap = cmap , subplots = True )
0 commit comments