#NEWLINE# def test_colormap( self ) : #NEWLINE# #INDENT# ax = self . points . plot ( cmap = 'RdYlGn' ) #NEWLINE# cmap = get_cmap ( 'RdYlGn' , 9 ) #NEWLINE# expected_colors = cmap ( ( list ( range ( 9 ) ) * 2 ) ) #NEWLINE# _check_colors ( ax . get_lines ( ) , cmap ) #NEWLINE# ax = self . df . plot ( cmap = 'RdYlGn' ) #NEWLINE# _check_colors ( ax . get_lines ( ) , expected_colors ) #NEWLINE# ax = self . df . plot ( column = 'values' , cmap = 'RdYlGn' ) #NEWLINE# cmap = get_cmap ( 'RdYlGn' ) #NEWLINE# expected_colors = cmap ( ( np . arange ( self . N ) / ( self . N - 1 ) ) ) #NEWLINE# _check_colors ( ax . get_lines ( ) , expected_colors )