@image_comparison(baseline_images=[u'EventCollection_plot__set_color'])
def test__EventCollection__set_color():
 (splt, coll, _) = generate_EventCollection_plot()
 new_color = np.array([0, 1, 1, 1])
 coll.set_color(new_color)
 np.testing.assert_array_equal(new_color, coll.get_color())
 check_allprop_array(coll.get_colors(), new_color)
 splt.set_title(u'EventCollection: set_color')

@ image_comparison ( baseline_images = [ u'EventCollection_plot__set_color' ] ) def test__EventCollection__set_color ( ) : ( splt , coll , _ ) = generate_EventCollection_plot ( ) new_color = np . array ( [ 0 , 1 , 1 , 1 ] ) coll . set_color ( new_color ) np . testing . assert_array_equal ( new_color , coll . get_color ( ) ) check_allprop_array ( coll . get_colors ( ) , new_color ) splt . set_title ( u'EventCollection: set_color' )
check to make sure set_color works properly .