#NEWLINE# def legend( labelcolor , axl ) : #NEWLINE# #INDENT# '\n    creates a legend axes given a list of name, color tuple and an axes name\n    ' #NEWLINE# for ( label , color ) in labelcolor : #NEWLINE# #INDENT# axl . scatter ( 1 , 1 , c = color , label = label ) #NEWLINE# axl . set_ylim ( 0 , 0.1 ) #NEWLINE# axl . legend ( bbox_to_anchor = ( 0 , 1 ) , loc = 2 , borderaxespad = 0 , scatterpoints = 1 , frameon = False ) #NEWLINE# axl . axis ( 'off' ) #NEWLINE# #UNINDENT# return axl