#NEWLINE# def compute( self ) : #NEWLINE# #INDENT# figInstance = pylab . figure ( ) #NEWLINE# pylab . hold ( True ) #NEWLINE# plots = self . get_input ( 'addPlot' ) #NEWLINE# for plot in plots : #NEWLINE# #INDENT# plot ( figInstance ) #NEWLINE# #UNINDENT# if self . has_input ( 'figureProperties' ) : #NEWLINE# #INDENT# figure_props = self . get_input ( 'figureProperties' ) #NEWLINE# figure_props . update_props ( figInstance ) #NEWLINE# #UNINDENT# if self . has_input ( 'axesProperties' ) : #NEWLINE# #INDENT# axes_props = self . get_input ( 'axesProperties' ) #NEWLINE# axes_props . update_props ( figInstance . gca ( ) ) #NEWLINE# #UNINDENT# if self . has_input ( 'setLegend' ) : #NEWLINE# #INDENT# legend = self . get_input ( 'setLegend' ) #NEWLINE# figInstance . gca ( ) . legend ( ) #NEWLINE# #UNINDENT# self . set_output ( 'figure' , figInstance )