#NEWLINE# def test_custom_y_loc_for_annotation_point( ) : #NEWLINE# #INDENT# wave = ( 1240 + ( np . arange ( 300 ) * 0.1 ) ) #NEWLINE# flux = np . random . normal ( size = 300 ) #NEWLINE# line_wave = [ 1242.8 , 1260.42 , 1264.74 , 1265.0 , 1265.2 , 1265.3 , 1265.35 ] #NEWLINE# line_label1 = [ 'N V' , 'Si II' , 'Si II' , 'Si II' , 'Si II' , 'Si II' , 'Si II' ] #NEWLINE# fig = plt . figure ( ) #NEWLINE# ax = fig . add_subplot ( 111 ) #NEWLINE# ax . plot ( line_wave , flux ) #NEWLINE# ax . axis ( [ 1240 , 1270 , ( - 3 ) , 5 ] ) #NEWLINE# lineid_plot . plot_line_ids ( wave , flux , line_wave , line_label1 , arrow_tip = 3.3 , ax = ax )