def METHOD_NAME(self, json_perf_data_parser, figure_path):
    """
    Create a plot of the metrics
    The figure_path is where the figure will be saved too, if the target branch is the same as
    the current branch then metrics associated with previous commits from the same branch will
    be plotted. If the target and current branch are different then the latest commits from
    both will be plotted.
    """
    if self._target_branch == self._current_branch:
        self._plotDataFromPreviousCommitsFromSameBranch(
            json_perf_data_parser, figure_path
        )
    else:
        self._plotTargetBranchDataVsCurrentBranchData(figure_path)