docs: def create_menu(self):
          """
          Create menu bar
          """
          self.menubar = wx.MenuBar()
  
          menu_preferences = wx.Menu()
  
          m_preferences_apperance = menu_preferences.Append(
              -1, "&Appearence preferences", "")
          self.Bind(wx.EVT_MENU, self.on_menu_appearance_preferences,
                    m_preferences_apperance)
  
          m_preferences_spd = menu_preferences.Append(
              -1, "&Specimen paleointensity statistics (from SPD list)", "")
          self.Bind(wx.EVT_MENU, self.on_menu_m_preferences_spd,
                    m_preferences_spd)
  
          #m_preferences_stat = menu_preferences.Append(-1, "&Statistical preferences", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_preferences_stat, m_preferences_stat)
  
          #m_save_preferences = menu_preferences.Append(-1, "&Save preferences", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_save_preferences, m_save_preferences)
  
          menu_file = wx.Menu()
  
          m_change_working_directory = menu_file.Append(
              -1, "&Change project directory", "")
          self.Bind(wx.EVT_MENU, self.on_menu_change_working_directory,
                    m_change_working_directory)
  
          #m_add_working_directory = menu_file.Append(-1, "&Add a MagIC project directory", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_add_working_directory, m_add_working_directory)
  
          m_open_magic_file = menu_file.Append(-1,
                                               "&Open MagIC measurement file", "")
          self.Bind(wx.EVT_MENU, self.on_menu_open_magic_file, m_open_magic_file)
  
          m_open_magic_tree = menu_file.Append(
              -1, "&Open all MagIC project directories in path", "")
          self.Bind(wx.EVT_MENU, self.on_menu_m_open_magic_tree,
                    m_open_magic_tree)
  
          menu_file.AppendSeparator()
  
          m_prepare_MagIC_results_tables = menu_file.Append(
              -1, "&Save MagIC tables", "")
          self.Bind(wx.EVT_MENU, self.on_menu_prepare_magic_results_tables,
                    m_prepare_MagIC_results_tables)
  
          submenu_save_plots = wx.Menu()
  
          m_save_Arai_plot = submenu_save_plots.Append(-1, "&Save Arai plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_Arai_plot, m_save_Arai_plot)
  
          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 equal area plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_Eq_plot, m_save_eq_plot, "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_NLT_plot = submenu_save_plots.Append(-1, "&Save NLT plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_NLT_plot, m_save_NLT_plot, "NLT")
  
          m_save_CR_plot = submenu_save_plots.Append(
              -1, "&Save cooling rate plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_CR_plot, m_save_CR_plot, "CR")
  
          m_save_sample_plot = submenu_save_plots.Append(
              -1, "&Save sample plot", "")
          self.Bind(wx.EVT_MENU, self.on_save_sample_plot,
                    m_save_sample_plot, "Samp")
  
          #m_save_all_plots = submenu_save_plots.Append(-1, "&Save all plots", "")
          #self.Bind(wx.EVT_MENU, self.on_save_all_plots, m_save_all_plots)
  
          menu_file.AppendSeparator()
  
          m_new_sub_plots = menu_file.AppendSubMenu(submenu_save_plots,
                                                    "&Save plot")
  
          menu_file.AppendSeparator()
          m_exit = menu_file.Append(wx.ID_EXIT, "Quit", "Quit application")
          self.Bind(wx.EVT_MENU, self.on_menu_exit, m_exit)
  
          menu_anisotropy = wx.Menu()
  
          m_calculate_aniso_tensor = menu_anisotropy.Append(
              -1, "&Calculate anisotropy tensors", "")
          self.Bind(wx.EVT_MENU, self.on_menu_calculate_aniso_tensor,
                    m_calculate_aniso_tensor)
  
          m_show_anisotropy_errors = menu_anisotropy.Append(
              -1, "&Show anisotropy calculation Warnings/Errors", "")
          self.Bind(wx.EVT_MENU, self.on_show_anisotropy_errors,
                    m_show_anisotropy_errors)
  
          menu_Analysis = wx.Menu()
  
          submenu_criteria = wx.Menu()
  
         # m_set_criteria_to_default = submenu_criteria.Append(-1, "&Set acceptance criteria to default", "")
         # self.Bind(wx.EVT_MENU, self.on_menu_default_criteria, m_set_criteria_to_default)
  
          m_change_criteria_file = submenu_criteria.Append(
              -1, "&Change acceptance criteria", "")
          self.Bind(wx.EVT_MENU, self.on_menu_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")
  
          m_previous_interpretation = menu_Analysis.Append(
              -1, "&Import previous interpretation from a 'redo' file", "")
          self.Bind(wx.EVT_MENU, self.on_menu_previous_interpretation,
                    m_previous_interpretation)
  
          m_save_interpretation = menu_Analysis.Append(
              -1, "&Save current interpretations to a 'redo' file", "")
          self.Bind(wx.EVT_MENU, self.on_menu_save_interpretation,
                    m_save_interpretation)
  
          m_delete_interpretation = menu_Analysis.Append(
              -1, "&Clear all current interpretations", "")
          self.Bind(wx.EVT_MENU, self.on_menu_clear_interpretation,
                    m_delete_interpretation)
  
          menu_Tools = wx.Menu()
          #m_prev_interpretation = menu_file.Append(-1, "&Save plot\tCtrl-S", "Save plot to file")
  
          menu_Auto_Interpreter = wx.Menu()
  
          m_interpreter = menu_Auto_Interpreter.Append(
              -1, "&Run Thellier auto interpreter", "Run auto interpter")
          self.Bind(wx.EVT_MENU, self.on_menu_run_interpreter, m_interpreter)
  
          m_open_interpreter_file = menu_Auto_Interpreter.Append(
              -1, "&Open auto-interpreter output files", "")
          self.Bind(wx.EVT_MENU, self.on_menu_open_interpreter_file,
                    m_open_interpreter_file)
  
          m_open_interpreter_log = menu_Auto_Interpreter.Append(
              -1, "&Open auto-interpreter Warnings/Errors", "")
          self.Bind(wx.EVT_MENU, self.on_menu_open_interpreter_log,
                    m_open_interpreter_log)
  
          #menu_consistency_test = wx.Menu()
          #m_run_consistency_test = menu_consistency_test.Append(
          #    -1, "&Run Consistency test", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_run_consistency_test,
          #          m_run_consistency_test)
  
          #m_run_consistency_test_b = menu_Optimizer.Append(-1, "&Run Consistency test beta version", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_run_consistency_test_b, m_run_consistency_test_b)
  
          menu_Plot = wx.Menu()
          m_plot_data = menu_Plot.Append(-1, "&Plot paleointensity curve", "")
          self.Bind(wx.EVT_MENU, self.on_menu_plot_data, m_plot_data)
  
          menu_Help = wx.Menu()
  
          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)
  
          #menu_results_table= wx.Menu()
          #m_make_results_table = menu_results_table.Append(-1, "&Make results table", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_results_data, m_make_results_table)
  
          #menu_MagIC= wx.Menu()
          #m_convert_to_magic= menu_MagIC.Append(-1, "&Convert generic files to MagIC format", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_convert_to_magic, m_convert_to_magic)
          #m_build_magic_model= menu_MagIC.Append(-1, "&Run MagIC model builder", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_MagIC_model_builder, m_build_magic_model)
          #m_prepare_MagIC_results_tables= menu_MagIC.Append(-1, "&Make MagIC results Table", "")
          #self.Bind(wx.EVT_MENU, self.on_menu_prepare_magic_results_tables, m_prepare_MagIC_results_tables)
  
          #menu_help = wx.Menu()
          #m_about = menu_help.Append(-1, "&About\tF1", "About this program")
          self.menubar.Append(menu_preferences, "& Preferences")
          self.menubar.Append(menu_file, "&File")
          self.menubar.Append(menu_anisotropy, "&Anisotropy")
          self.menubar.Append(menu_Analysis, "&Analysis")
          self.menubar.Append(menu_Auto_Interpreter, "&Auto Interpreter")
          #self.menubar.Append(menu_consistency_test, "&Consistency Test")
          self.menubar.Append(menu_Plot, "&Plot")
          self.menubar.Append(menu_Help, "&Help")
          #self.menubar.Append(menu_results_table, "&Table")
          #self.menubar.Append(menu_MagIC, "&MagIC")
          self.SetMenuBar(self.menubar)