@image_comparison(baseline_images=[u'EventCollection_plot__set_lineoffset'])
def test__EventCollection__set_lineoffset():
 (splt, coll, props) = generate_EventCollection_plot()
 new_lineoffset = (-5.0)
 coll.set_lineoffset(new_lineoffset)
 assert_equal(new_lineoffset, coll.get_lineoffset())
 check_segments(coll, props[u'positions'], props[u'linelength'], new_lineoffset, props[u'orientation'])
 splt.set_title(u'EventCollection: set_lineoffset')
 splt.set_ylim((-6), (-4))

@ image_comparison ( baseline_images = [ u'EventCollection_plot__set_lineoffset' ] ) def test__EventCollection__set_lineoffset ( ) : ( splt , coll , props ) = generate_EventCollection_plot ( ) new_lineoffset = ( - 5.0 ) coll . set_lineoffset ( new_lineoffset ) assert_equal ( new_lineoffset , coll . get_lineoffset ( ) ) check_segments ( coll , props [ u'positions' ] , props [ u'linelength' ] , new_lineoffset , props [ u'orientation' ] ) splt . set_title ( u'EventCollection: set_lineoffset' ) splt . set_ylim ( ( - 6 ) , ( - 4 ) )
check to make sure set_lineoffset works properly .