@image_comparison(baseline_images=[u'EventCollection_plot__set_orientation'])
def test__EventCollection__set_orientation():
 (splt, coll, props) = generate_EventCollection_plot()
 new_orientation = u'vertical'
 coll.set_orientation(new_orientation)
 assert_equal(new_orientation, coll.get_orientation())
 assert_equal(False, coll.is_horizontal())
 check_segments(coll, props[u'positions'], props[u'linelength'], props[u'lineoffset'], new_orientation)
 splt.set_title(u'EventCollection: set_orientation')
 splt.set_ylim((-1), 22)
 splt.set_xlim(0, 2)

@ image_comparison ( baseline_images = [ u'EventCollection_plot__set_orientation' ] ) def test__EventCollection__set_orientation ( ) : ( splt , coll , props ) = generate_EventCollection_plot ( ) new_orientation = u'vertical' coll . set_orientation ( new_orientation ) assert_equal ( new_orientation , coll . get_orientation ( ) ) assert_equal ( False , coll . is_horizontal ( ) ) check_segments ( coll , props [ u'positions' ] , props [ u'linelength' ] , props [ u'lineoffset' ] , new_orientation ) splt . set_title ( u'EventCollection: set_orientation' ) splt . set_ylim ( ( - 1 ) , 22 ) splt . set_xlim ( 0 , 2 )
check to make sure set_orientation works properly .