anchor.diff:      ok.
   
   %% @private
  -output_file() ->
  -    string:join([plot_dir() ++  "/advertisement_counter_transmission",
  +output_file(Plot) ->
  +    string:join([plot_dir() ++  "/advertisement_counter_" ++ atom_to_list(Plot),
                   atom_to_list(?ORSET),
                   atom_to_list(?COUNTER),
                   integer_to_list(?NUM_EVENTS),
  -                integer_to_list(?NUM_CLIENTS),
  -                integer_to_list(?SYNC_INTERVAL) ++ ".pdf"], "-").
  +                integer_to_list(?NUM_CLIENTS) ++ ".pdf"], "-").
   
   %% @private
   priv_dir() ->
  
positive.code:             "/usr/bin/gnuplot"
      end,
  
      OutputFile = output_file(),
  
      GnuPlot = plot_dir() ++ "/advertisement_counter_transmission.gnuplot",
  
      Command = Bin ++
          " -e \"inputfile1='" ++ log_dir(ClientFilename1) ++
          "'; inputfile2='" ++ log_dir(ClientFilename2) ++
          "'; outputname='" ++ OutputFile ++ "'\" " ++ GnuPlot,
  
      Result = os:cmd(Command),
      lager:info("Generating plot: ~p; output: ~p", [Command, Result]),
  
      ok.
  
  
negative.code: %% @private
  advertisement_counter_transmission_simulation(Nodes) ->
  
      %% Run the simulation with the orset, gcounter, no deltas; 1s sync.
      {ok, [DivergenceFilename1,
            ClientFilename1|_]} = lasp_simulation:run(lasp_advertisement_counter,
                                                      [Nodes,
                                                       false,
                                                       ?ORSET,
                                                       ?COUNTER,
                                                       ?NUM_EVENTS,
                                                       ?NUM_CLIENTS,
                                                       500]),
  
      %% Run the simulation with the orset, gcounter, deltas enabled; 1s
      %% sync.
      {ok, [_,
            ClientFilename2|_]} = lasp_simulation:run(lasp_advertisement_counter,
                                                      [Nodes,
                                                       true,
                                                       ?ORSET,
                                                       ?COUNTER,
                                                       ?NUM_EVENTS,
                                                       ?NUM_CLIENTS,
                                                       500]),
  
      %% Run the simulation with the orset, gcounter, no deltas; 5s sync.
      {ok, [DivergenceFilename2
            |_]} = lasp_simulation:run(lasp_advertisement_counter,
                                      [Nodes,
                                       false,
                                       ?ORSET,
                                       ?COUNTER,
                                       ?NUM_EVENTS,
                                       ?NUM_CLIENTS,
                                       1000]),
  
      %% Plot both graphs.
      Bin = case os:getenv("MESOS_TASK_ID", "false") of
  