code: def map_process(args):
      '''process for a graph'''
      from mavflightview import mavflightview_mav, mavflightview_options
      mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)
      
      options = mavflightview_options()
      options.condition = mestate.settings.condition
      if len(args) > 0:
          options.types = ','.join(args)
      mavflightview_mav(mestate.mlog, optionsf map_process(args):
      '''process for a graph'''
      from mavflightview import mavflightview_mav, mavflightview_options
      mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)
      
      options = mavflightview_options()
      options.condition = mestate.settings.condition
      if len(args) > 0:
          options.types = ','.join(args)
      mavflightview_mav(mestate.mlog, options)
docs: process for a graph