parameters: (
      output_name,
      title,
      data,
      plot_params=plot_parameters(),
      display=False,
      output_dir=".",
      echo_dart=None,
  )
docstring: A function to plot JSON data
  
      Args:
          - data (list):
              - list of "plot_data" objects
              - should contain their own plot_parameters object
          - files (list):
              - list of JSON files
              - "plot_params" argument object will be applied to these files
          - combine (bool):
              - if specified, the plot_data objects from "data" and "files"
                will be combined into one "plot_data" object
              - the plot_params object will be used for this
docstring_summary: A function to plot JSON data
docstring_tokens: A function to plot JSON data
function: def plot_maximums(
      output_name,
      title,
      data,
      plot_params=plot_parameters(),
      display=False,
      output_dir=".",
      echo_dart=None,
  ):
      """
      A function to plot JSON data
  
      Args:
          - data (list):
              - list of "plot_data" objects
              - should contain their own plot_parameters object
          - files (list):
              - list of JSON files
              - "plot_params" argument object will be applied to these files
          - combine (bool):
              - if specified, the plot_data objects from "data" and "files"
                will be combined into one "plot_data" object
              - the plot_params object will be used for this
      """
      try:
          # try here in case running as main on C++ output
          import timemory.options as options
  
          if echo_dart is None and options.echo_dart:
              echo_dart = True
          elif echo_dart is None:
              echo_dart = False
      except ImportError:
          pass
  
      _combined = None
      for _data in data:
          if _combined is None:
              _combined = plot_data(
                  filename=output_name,
                  output_name=output_name,
                  concurrency=_data.concurrency,
                  mpi_size=_data.mpi_size,
                  timemory_functions={},
                  title=title,
                  plot_params=plot_params,
              )
  
          _key = list(_data.timemory_functions.keys())[0]
          _obj = _data.timemory_functions[_key]
          _obj_name = "{}".format(_data.filename)
          _obj.func = _obj_name
          _combined.timemory_functions[_obj_name] = _obj
  
      try:
          # print('Plotting {}...'.format(_combined.filename))
          plot_all(_combined, display, output_dir, echo_dart)
  
      except Exception as e:
          exc_type, exc_value, exc_traceback = sys.exc_info()
          traceback.print_exception(exc_type, exc_value, exc_traceback, limit=5)
          print("Exception - {}".format(e))
          print('Error! Unable to plot "{}"...'.format(_combined.filename))
function_tokens: def plot_maximums ( output_name , title , data , plot_params = plot_parameters ( ) , display = False , output_dir = "." , echo_dart = None , ) : try : # try here in case running as main on C++ output import timemory . options as options if echo_dart is None and options . echo_dart : echo_dart = True elif echo_dart is None : echo_dart = False except ImportError : pass _combined = None for _data in data : if _combined is None : _combined = plot_data ( filename = output_name , output_name = output_name , concurrency = _data . concurrency , mpi_size = _data . mpi_size , timemory_functions = { } , title = title , plot_params = plot_params , ) _key = list ( _data . timemory_functions . keys ( ) ) [ 0 ] _obj = _data . timemory_functions [ _key ] _obj_name = "{}" . format ( _data . filename ) _obj . func = _obj_name _combined . timemory_functions [ _obj_name ] = _obj try : # print('Plotting {}...'.format(_combined.filename)) plot_all ( _combined , display , output_dir , echo_dart ) except Exception as e : exc_type , exc_value , exc_traceback = sys . exc_info ( ) traceback . print_exception ( exc_type , exc_value , exc_traceback , limit = 5 ) print ( "Exception - {}" . format ( e ) ) print ( 'Error! Unable to plot "{}"...' . format ( _combined . filename ) )