#NEWLINE# def recordPlotTeachingCommand( self ) : #NEWLINE# #INDENT# axisList = self . tabWidget . currentWidget ( ) #NEWLINE# tabName = self . tabWidget . currentTabName ( ) #NEWLINE# argString = self . generateKwargsAsString ( ) #NEWLINE# var = axisList . getVar ( ) #NEWLINE# fileID = 'fid2' #NEWLINE# slabCommand = '' #NEWLINE# if ( tabName == 'quickplot' ) : #NEWLINE# #INDENT# slabCommand += '\n# Get new slab\n' #NEWLINE# slabCommand += ( "%s = %s('%s', %s)\n" % ( tabName , fileID , var . id , argString ) ) #NEWLINE# #UNINDENT# slabCommand += '\n# Get new slab\n' #NEWLINE# slabCommand += ( '%s = %s(%s)\n' % ( tabName , tabName , argString ) ) #NEWLINE# slabCommand += axisList . getAxesOperationsTeachingCommands ( tabName ) #NEWLINE# canvasNum = 0 #NEWLINE# clearCommand = '\n# Clear the VCS Canvas\n' #NEWLINE# clearCommand += ( 'vcs_canvas_list[%d].clear()\n' % canvasNum ) #NEWLINE# plotID = 'vcs_display' #NEWLINE# plotType = str ( self . plotOptions . getPlotType ( ) ) #NEWLINE# template = self . getTemplateName ( plotType ) #NEWLINE# gm = self . getGraphicsMethodName ( plotType ) #NEWLINE# plotArgs = ( "%s, '%s', '%s', '%s'" % ( tabName , template , plotType , gm ) ) #NEWLINE# if ( self . plotOptions . getContinentType ( ) is not None ) : #NEWLINE# #INDENT# plotArgs += ( ', continents = %d' % self . plotOptions . getContinentType ( ) ) #NEWLINE# #UNINDENT# plotCommand = '\n# Plot slab\n' #NEWLINE# plotCommand += ( '%s = vcs_canvas_list[%d].plot(%s)\n' % ( plotID , canvasNum , plotArgs ) ) #NEWLINE# command = ( ( slabCommand + clearCommand ) + plotArgs ) #NEWLINE# self . emit ( QtCore . SIGNAL ( 'recordTeachingCommand' ) , command )