def copy_figure_to_clipboard(figure='<STR_LIT>'):
try:<EOL><INDENT>import pyqtgraph as _p<EOL>if figure is '<STR_LIT>': figure = _s.pylab.gcf() <EOL>path = _os.path.join(_s.settings.path_home, "<STR_LIT>")<EOL>figure.savefig(path)<EOL>_p.QtGui.QApplication.instance().clipboard().setImage(_p.QtGui.QImage(path))<EOL><DEDENT>except:         <EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>
Copies the specified figure to the system clipboard. Specifying 'gcf'
will use the current figure.