def figureListColors(figure: Figure): """ add all artist with colors to a list in the figure """ figure.color_artists = {} addChildren(figure.color_artists, figure)