@@ -659,36 +659,6 @@ def test_colors_of_columns_with_same_name(self):
659659
660660 def test_invalid_colormap (self ):
661661 df = DataFrame (np .random .randn (3 , 2 ), columns = ["A" , "B" ])
662- msg = (
663- "'invalid_colormap' is not a valid value for name; supported values are "
664- "'Accent', 'Accent_r', 'Blues', 'Blues_r', 'BrBG', 'BrBG_r', 'BuGn', "
665- "'BuGn_r', 'BuPu', 'BuPu_r', 'CMRmap', 'CMRmap_r', 'Dark2', 'Dark2_r', "
666- "'GnBu', 'GnBu_r', 'Greens', 'Greens_r', 'Greys', 'Greys_r', 'OrRd', "
667- "'OrRd_r', 'Oranges', 'Oranges_r', 'PRGn', 'PRGn_r', 'Paired', "
668- "'Paired_r', 'Pastel1', 'Pastel1_r', 'Pastel2', 'Pastel2_r', 'PiYG', "
669- "'PiYG_r', 'PuBu', 'PuBuGn', 'PuBuGn_r', 'PuBu_r', 'PuOr', 'PuOr_r', "
670- "'PuRd', 'PuRd_r', 'Purples', 'Purples_r', 'RdBu', 'RdBu_r', 'RdGy', "
671- "'RdGy_r', 'RdPu', 'RdPu_r', 'RdYlBu', 'RdYlBu_r', 'RdYlGn', "
672- "'RdYlGn_r', 'Reds', 'Reds_r', 'Set1', 'Set1_r', 'Set2', 'Set2_r', "
673- "'Set3', 'Set3_r', 'Spectral', 'Spectral_r', 'Wistia', 'Wistia_r', "
674- "'YlGn', 'YlGnBu', 'YlGnBu_r', 'YlGn_r', 'YlOrBr', 'YlOrBr_r', "
675- "'YlOrRd', 'YlOrRd_r', 'afmhot', 'afmhot_r', 'autumn', 'autumn_r', "
676- "'binary', 'binary_r', 'bone', 'bone_r', 'brg', 'brg_r', 'bwr', "
677- "'bwr_r', 'cividis', 'cividis_r', 'cool', 'cool_r', 'coolwarm', "
678- "'coolwarm_r', 'copper', 'copper_r', 'cubehelix', 'cubehelix_r', "
679- "'flag', 'flag_r', 'gist_earth', 'gist_earth_r', 'gist_gray', "
680- "'gist_gray_r', 'gist_heat', 'gist_heat_r', 'gist_ncar', "
681- "'gist_ncar_r', 'gist_rainbow', 'gist_rainbow_r', 'gist_stern', "
682- "'gist_stern_r', 'gist_yarg', 'gist_yarg_r', 'gnuplot', 'gnuplot2', "
683- "'gnuplot2_r', 'gnuplot_r', 'gray', 'gray_r', 'hot', 'hot_r', 'hsv', "
684- "'hsv_r', 'inferno', 'inferno_r', 'jet', 'jet_r', 'magma', 'magma_r', "
685- "'nipy_spectral', 'nipy_spectral_r', 'ocean', 'ocean_r', 'pink', "
686- "'pink_r', 'plasma', 'plasma_r', 'prism', 'prism_r', 'rainbow', "
687- "'rainbow_r', 'seismic', 'seismic_r', 'spring', 'spring_r', 'summer', "
688- "'summer_r', 'tab10', 'tab10_r', 'tab20', 'tab20_r', 'tab20b', "
689- "'tab20b_r', 'tab20c', 'tab20c_r', 'terrain', 'terrain_r', 'turbo', "
690- "'turbo_r', 'twilight', 'twilight_r', 'twilight_shifted', "
691- "'twilight_shifted_r', 'viridis', 'viridis_r', 'winter', 'winter_r'"
692- )
662+ msg = "'invalid_colormap' is not a valid value for name; supported values are "
693663 with pytest .raises (ValueError , match = msg ):
694664 df .plot (colormap = "invalid_colormap" )
0 commit comments