code: def export_figure(dpi=200, figure="gcf", path=None):
      
      if figure=="gcf": figure = _pylab.gcf()
  
      if path==None: path = _s.dialogs.Save("*.*", default_directory="save_plot_default_directory")
  
      if path=="":
          print("aborted.")
          return
  
      figure.savefig(path, dpi=dpi)
docs: Saves the actual postscript data for the figure.