#NEWLINE# def compute_output( self , output_module , configuration ) : #NEWLINE# #INDENT# figure = output_module . get_input ( 'value' ) #NEWLINE# w = configuration [ 'width' ] #NEWLINE# h = configuration [ 'height' ] #NEWLINE# img_format = self . get_format ( configuration ) #NEWLINE# filename = self . get_filename ( configuration , suffix = ( '.%s' % img_format ) ) #NEWLINE# w_inches = ( w / 72.0 ) #NEWLINE# h_inches = ( h / 72.0 ) #NEWLINE# previous_size = tuple ( figure . get_size_inches ( ) ) #NEWLINE# figure . set_size_inches ( w_inches , h_inches ) #NEWLINE# canvas = FigureCanvasBase ( figure ) #NEWLINE# canvas . print_figure ( filename , dpi = 72 , format = img_format ) #NEWLINE# figure . set_size_inches ( previous_size [ 0 ] , previous_size [ 1 ] ) #NEWLINE# canvas . draw ( )