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