#NEWLINE# def all_artists( fig ) : #NEWLINE# #INDENT# '\n    Build a set of all Matplotlib artists in a Figure\n    ' #NEWLINE# return set ( ( item for axes in fig . axes for container in [ axes . collections , axes . patches , axes . lines , axes . texts , axes . artists , axes . images ] for item in container ) )