code: def copy_figure_to_clipboard(figure='gcf'):
          
      try:
          import pyqtgraph as _p
      
          # Get the current figure if necessary        
          if figure is 'gcf': figure = _s.pylab.gcf() 
          
          # Store the figure as an image
          path = _os.path.join(_s.settings.path_home, "clipboard.png")
          figure.savefig(path)
          
          # Set the clipboard. I know, it's weird to use pyqtgraph, but 
          # This covers both Qt4 and Qt5 with their Qt4 wrapper!
          _p.QtGui.QApplication.instance().clipboard().setImage(_p.QtGui.QImage(path))
          
      except:         
          print("This function currently requires pyqtgraph to be installed.")
docs: Copies the specified figure to the system clipboard. Specifying 'gcf'
      will use the current figure.