@image_comparison(baseline_images=[u'EventCollection_plot__set_linelength'])
def test__EventCollection__set_linelength():
 (splt, coll, props) = generate_EventCollection_plot()
 new_linelength = 15
 coll.set_linelength(new_linelength)
 assert_equal(new_linelength, coll.get_linelength())
 check_segments(coll, props[u'positions'], new_linelength, props[u'lineoffset'], props[u'orientation'])
 splt.set_title(u'EventCollection: set_linelength')
 splt.set_ylim((-20), 20)

@ image_comparison ( baseline_images = [ u'EventCollection_plot__set_linelength' ] ) def test__EventCollection__set_linelength ( ) : ( splt , coll , props ) = generate_EventCollection_plot ( ) new_linelength = 15 coll . set_linelength ( new_linelength ) assert_equal ( new_linelength , coll . get_linelength ( ) ) check_segments ( coll , props [ u'positions' ] , new_linelength , props [ u'lineoffset' ] , props [ u'orientation' ] ) splt . set_title ( u'EventCollection: set_linelength' ) splt . set_ylim ( ( - 20 ) , 20 )
check to make sure set_linelength works properly .