docs: def create_menu(self):
          """
          Create the MenuBar for the GUI current structure is:
          File : Change Working Directory, Import Interpretations from LSQ
          file, Import interpretations from a redo file, Save interpretations
          to a redo file, Save MagIC tables, Save Plots
          Edit : New Interpretation, Delete Interpretation, Next
          Interpretation, Previous Interpretation, Next Specimen, Previous
          Speciemen, Flag Measurement Data, Coordinate Systems
          Analysis : Acceptance Criteria, Sample Orientation, Flag
          Interpretaions
          Tools : Interpretation Editor, VGP Viewer
          Help : Usage and Tips, PmagPy Cookbook, Open Docs, Github Page, Open
          Debugger
          """
          self.menubar = wx.MenuBar()
  
          # -----------------
          # File Menu
          # -----------------
  
          menu_file = wx.Menu()
  
          m_change_WD = menu_file.Append(-1,
                                         "Change Working Directory\tCtrl-W", "")
          self.Bind(wx.EVT_MENU, self.on_menu_change_working_directory, m_change_WD)
  
  
  
          m_import_meas_file = menu_file.Append(-1,
                                          "Change measurements file", "")
  
          self.Bind(wx.EVT_MENU, self.on_menu_import_meas_file, m_import_meas_file)
  
          m_import_LSQ = menu_file.Append(-1,
                                          "&Import Interpretations from LSQ file\tCtrl-L", "")
          self.Bind(wx.EVT_MENU, self.on_menu_read_from_LSQ, m_import_LSQ)
  
          m_previous_interpretation = menu_file.Append(
              -1, "&Import interpretations from a redo file\tCtrl-R", "")
          self.Bind(wx.EVT_MENU, self.on_menu_previous_interpretation,
                    m_previous_interpretation)
  
          m_save_interpretation = menu_file.Append(
              -1, "&Save interpretations to a redo file\tCtrl-S", "")
          self.Bind(wx.EVT_MENU, self.on_menu_save_interpretation,
                    m_save_interpretation)
  
          m_make_MagIC_results_tables = menu_file.Append(
              -1, "&Save MagIC tables\tCtrl-Shift-S", "")
          self.Bind(wx.EVT_MENU, self.on_menu_make_MagIC_results_tables,
                    m_make_MagIC_results_tables)
  
          submenu_save_plots = wx.Menu()
  
          m_save_zij_plot = submenu_save_plots.Append(
              -1, "&Save Zijderveld plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_Zij_plot, m_save_zij_plot, "Zij")
  
          m_save_eq_plot = submenu_save_plots.Append(
              -1, "&Save specimen equal area plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_Eq_plot,
                    m_save_eq_plot, "specimen-Eq")
  
          m_save_M_t_plot = submenu_save_plots.Append(-1, "&Save M-t plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_M_t_plot, m_save_M_t_plot, "M_t")
  
          m_save_high_level = submenu_save_plots.Append(
              -1, "&Save high level plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_high_level,
                    m_save_high_level, "Eq")
  
          m_save_all_plots = submenu_save_plots.Append(-1, "&Save all plots", "")
          self.Bind(wx.EVT_MENU, self.on_save_all_figures, m_save_all_plots)
  
          m_new_sub_plots = menu_file.AppendSubMenu(submenu_save_plots, "&Save plot")
  
          menu_file.AppendSeparator()
          m_exit = menu_file.Append(-1, "E&xit\tCtrl-Q", "Exit")
          self.Bind(wx.EVT_MENU, self.on_menu_exit, m_exit)
  
          # -----------------
          # Edit Menu
          # -----------------
  
          menu_edit = wx.Menu()
  
          m_new = menu_edit.Append(-1, "&New interpretation\tCtrl-N", "")
          self.Bind(wx.EVT_MENU, self.on_btn_add_fit, m_new)
  
          m_delete = menu_edit.Append(-1, "&Delete interpretation\tCtrl-D", "")
          self.Bind(wx.EVT_MENU, self.on_btn_delete_fit, m_delete)
  
          m_next_interp = menu_edit.Append(-1,
                                           "&Next interpretation\tCtrl-Up", "")
          self.Bind(wx.EVT_MENU, self.on_menu_next_interp, m_next_interp)
  
          m_previous_interp = menu_edit.Append(-1,
                                               "&Previous interpretation\tCtrl-Down", "")
          self.Bind(wx.EVT_MENU, self.on_menu_prev_interp, m_previous_interp)
  
          m_next_specimen = menu_edit.Append(-1,
                                             "&Next Specimen\tCtrl-Right", "")
          self.Bind(wx.EVT_MENU, self.on_next_button, m_next_specimen)
  
          m_previous_specimen = menu_edit.Append(-1,
                                                 "&Previous Specimen\tCtrl-Left", "")
          self.Bind(wx.EVT_MENU, self.on_prev_button, m_previous_specimen)
  
          menu_flag_meas = wx.Menu()
  
          m_good = menu_flag_meas.Append(-1, "&Good Measurement\tCtrl-Alt-G", "")
          self.Bind(wx.EVT_MENU, self.on_menu_flag_meas_good, m_good)
          m_bad = menu_flag_meas.Append(-1, "&Bad Measurement\tCtrl-Alt-B", "")
          self.Bind(wx.EVT_MENU, self.on_menu_flag_meas_bad, m_bad)
  
          m_flag_meas = menu_edit.AppendSubMenu(menu_flag_meas, "&Flag Measurement Data")
  
          menu_coordinates = wx.Menu()
  
          m_speci = menu_coordinates.Append(-1,
                                            "&Specimen Coordinates\tCtrl-P", "")
          self.Bind(wx.EVT_MENU, self.on_menu_change_speci_coord, m_speci)
          if "geographic" in self.coordinate_list:
              m_geo = menu_coordinates.Append(-1,
                                              "&Geographic Coordinates\tCtrl-G", "")
              self.Bind(wx.EVT_MENU, self.on_menu_change_geo_coord, m_geo)
          if "tilt-corrected" in self.coordinate_list:
              m_tilt = menu_coordinates.Append(-1,
                                               "&Tilt-Corrected Coordinates\tCtrl-T", "")
              self.Bind(wx.EVT_MENU, self.on_menu_change_tilt_coord, m_tilt)
  
          m_coords = menu_edit.AppendSubMenu(menu_coordinates, "&Coordinate Systems")
  
          # -----------------
          # Analysis Menu
          # -----------------
  
          menu_Analysis = wx.Menu()
  
          submenu_criteria = wx.Menu()
  
          m_change_criteria_file = submenu_criteria.Append(
              -1, "&Change acceptance criteria", "")
          self.Bind(wx.EVT_MENU, self.on_menu_change_criteria,
                    m_change_criteria_file)
  
          m_import_criteria_file = submenu_criteria.Append(
              -1, "&Import criteria file", "")
          self.Bind(wx.EVT_MENU, self.on_menu_criteria_file,
                    m_import_criteria_file)
  
          m_new_sub = menu_Analysis.AppendSubMenu(submenu_criteria, "Acceptance criteria")
  
          menu_flag_fit = wx.Menu()
  
          m_good_fit = menu_flag_fit.Append(-1,
                                            "&Good Interpretation\tCtrl-Shift-G", "")
          self.Bind(wx.EVT_MENU, self.on_menu_flag_fit_good, m_good_fit)
          m_bad_fit = menu_flag_fit.Append(-1,
                                           "&Bad Interpretation\tCtrl-Shift-B", "")
          self.Bind(wx.EVT_MENU, self.on_menu_flag_fit_bad, m_bad_fit)
  
          m_flag_fit = menu_Analysis.AppendSubMenu(menu_flag_fit, "&Flag Interpretations")
  
          submenu_sample_check = wx.Menu()
  
          m_check_orient = submenu_sample_check.Append(
              -1, "&Check Sample Orientations\tCtrl-O", "")
          self.Bind(wx.EVT_MENU, self.on_menu_check_orient, m_check_orient)
  
          m_mark_samp_bad = submenu_sample_check.Append(
              -1, "&Mark Sample Bad\tCtrl-.", "")
          self.Bind(wx.EVT_MENU, self.on_menu_mark_samp_bad, m_mark_samp_bad)
  
          m_mark_samp_good = submenu_sample_check.Append(
              -1, "&Mark Sample Good\tCtrl-,", "")
          self.Bind(wx.EVT_MENU, self.on_menu_mark_samp_good, m_mark_samp_good)
  
          m_submenu = menu_Analysis.AppendSubMenu(submenu_sample_check, "Sample Orientation")
  
          submenu_toggle_mean_display = wx.Menu()
  
          lines = ["m_%s_toggle_mean = submenu_toggle_mean_display.AppendCheckItem(-1, '&%s', ''); self.Bind(wx.EVT_MENU, self.on_menu_toggle_mean, m_%s_toggle_mean)" % (
              f, f) for f in self.all_fits_list]
  
          for line in lines:
              exec(line)
  
          menu_Analysis.AppendSubMenu(submenu_toggle_mean_display, "Toggle Mean Display")
  
  
          # -----------------
          # Tools Menu
          # -----------------
  
          menu_Tools = wx.Menu()
  
  #        m_auto_interpret = menu_Tools.Append(-1, "&Auto interpret (alpha version)\tCtrl-A", "")
  #        self.Bind(wx.EVT_MENU, self.autointerpret, m_auto_interpret)
  
          m_edit_interpretations = menu_Tools.Append(
              -1, "&Interpretation editor\tCtrl-E", "")
          self.Bind(wx.EVT_MENU, self.on_menu_edit_interpretations,
                    m_edit_interpretations)
  
          m_view_VGP = menu_Tools.Append(-1, "&View VGPs\tCtrl-Shift-V", "")
          self.Bind(wx.EVT_MENU, self.on_menu_view_vgps, m_view_VGP)
  
          # -----------------
          # Help Menu
          # -----------------
  
          menu_Help = wx.Menu()
  
          m_help = menu_Help.Append(-1, "&Usage and Tips\tCtrl-H", "")
          self.Bind(wx.EVT_MENU, self.on_menu_help, m_help)
  
          m_cookbook = menu_Help.Append(-1, "&PmagPy Cookbook\tCtrl-Shift-W", "")
          self.Bind(wx.EVT_MENU, self.on_menu_cookbook, m_cookbook)
  
          m_docs = menu_Help.Append(-1, "&Open Docs\tCtrl-Shift-H", "")
          self.Bind(wx.EVT_MENU, self.on_menu_docs, m_docs)
  
          m_git = menu_Help.Append(-1, "&Github Page\tCtrl-Shift-G", "")
          self.Bind(wx.EVT_MENU, self.on_menu_git, m_git)
  
          m_debug = menu_Help.Append(-1, "&Open Debugger\tCtrl-Shift-D", "")
          self.Bind(wx.EVT_MENU, self.on_menu_debug, m_debug)
  
          # -----------------
  
          #self.menubar.Append(menu_preferences, "& Preferences")
          self.menubar.Append(menu_file, "&File")
          self.menubar.Append(menu_edit, "&Edit")
          self.menubar.Append(menu_Analysis, "&Analysis")
          self.menubar.Append(menu_Tools, "&Tools")
          self.menubar.Append(menu_Help, "&Help")
          #self.menubar.Append(menu_Plot, "&Plot")
          #self.menubar.Append(menu_results_table, "&Table")
          #self.menubar.Append(menu_MagIC, "&MagIC")
          self.SetMenuBar(self.menubar)