#NEWLINE# def make_shape( color , shape , size , alpha , y_offset = 10 , height = 20 ) : #NEWLINE# #INDENT# color = ( color if ( color != None ) else 'k' ) #NEWLINE# shape = ( shape if ( shape != None ) else 'o' ) #NEWLINE# size = ( ( ( size * 0.6 ) + 45 ) if ( size != None ) else 75 ) #NEWLINE# viz = DrawingArea ( 30 , height , 8 , 1 ) #NEWLINE# key = mlines . Line2D ( [ 0 ] , [ y_offset ] , marker = shape , markersize = ( size / 12.0 ) , mec = color , c = color , alpha = alpha ) #NEWLINE# viz . add_artist ( key ) #NEWLINE# return viz