def get_rank_percentage_cumhist(testres, bins='dense', key=None, join_acfgs=False):
    "\n        Args:\n            bins (unicode): (default = u'dense')\n            key (None): (default = None)\n            join_acfgs (bool): (default = False)\n\n        Returns:\n            tuple: (config_cdfs, edges)\n\n        CommandLine:\n            python -m wbia --tf TestResult.get_rank_percentage_cumhist\n            python -m wbia --tf TestResult.get_rank_percentage_cumhist \\\n                -t baseline -a unctrl ctrl\n\n            python -m wbia --tf TestResult.get_rank_percentage_cumhist \\\n                --db lynx \\\n                -a default:qsame_imageset=True,been_adjusted=True,excluderef=True \\\n                -t default:K=1 --show --cmd\n\n        Example:\n            >>> # DISABLE_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> from wbia.init import main_helpers\n            >>> ibs, testres = main_helpers.testdata_expts(\n            >>>     'testdb1', a=['default:num_names=1,name_offset=[0,1]'])\n            >>> bins = u'dense'\n            >>> key = None\n            >>> (config_cdfs, edges) = testres.get_rank_percentage_cumhist(bins)\n            >>> result = ('(config_cdfs, edges) = %s' % (str((config_cdfs, edges)),))\n            >>> print(result)\n        "
    (cfgx2_hist, edges) = testres.get_rank_histograms(bins, key=key, join_acfgs=join_acfgs)
    cfgx2_cumhist = np.cumsum(cfgx2_hist, axis=1)
    cfgx2_cumhist_percent = ((100 * cfgx2_cumhist) / cfgx2_cumhist.T[(- 1)].T[:, None])
    return (cfgx2_cumhist_percent, edges)
Args:
    bins (unicode): (default = u'dense')
    key (None): (default = None)
    join_acfgs (bool): (default = False)

Returns:
    tuple: (config_cdfs, edges)

CommandLine:
    python -m wbia --tf TestResult.get_rank_percentage_cumhist
    python -m wbia --tf TestResult.get_rank_percentage_cumhist \
        -t baseline -a unctrl ctrl

    python -m wbia --tf TestResult.get_rank_percentage_cumhist \
        --db lynx \
        -a default:qsame_imageset=True,been_adjusted=True,excluderef=True \
        -t default:K=1 --show --cmd

Example:
    >>> # DISABLE_DOCTEST
    >>> from wbia.expt.test_result import *  # NOQA
    >>> from wbia.init import main_helpers
    >>> ibs, testres = main_helpers.testdata_expts(
    >>>     'testdb1', a=['default:num_names=1,name_offset=[0,1]'])
    >>> bins = u'dense'
    >>> key = None
    >>> (config_cdfs, edges) = testres.get_rank_percentage_cumhist(bins)
    >>> result = ('(config_cdfs, edges) = %s' % (str((config_cdfs, edges)),))
    >>> print(result)
def get_rank_percentage_cumhist(testres, bins='dense', key=None, join_acfgs=False):
    "\n        Args:\n            bins (unicode): (default = u'dense')\n            key (None): (default = None)\n            join_acfgs (bool): (default = False)\n\n        Returns:\n            tuple: (config_cdfs, edges)\n\n        CommandLine:\n            python -m wbia --tf TestResult.get_rank_percentage_cumhist\n            python -m wbia --tf TestResult.get_rank_percentage_cumhist \\\n                -t baseline -a unctrl ctrl\n\n            python -m wbia --tf TestResult.get_rank_percentage_cumhist \\\n                --db lynx \\\n                -a default:qsame_imageset=True,been_adjusted=True,excluderef=True \\\n                -t default:K=1 --show --cmd\n\n        Example:\n            >>> # DISABLE_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> from wbia.init import main_helpers\n            >>> ibs, testres = main_helpers.testdata_expts(\n            >>>     'testdb1', a=['default:num_names=1,name_offset=[0,1]'])\n            >>> bins = u'dense'\n            >>> key = None\n            >>> (config_cdfs, edges) = testres.get_rank_percentage_cumhist(bins)\n            >>> result = ('(config_cdfs, edges) = %s' % (str((config_cdfs, edges)),))\n            >>> print(result)\n        "
    (cfgx2_hist, edges) = testres.get_rank_histograms(bins, key=key, join_acfgs=join_acfgs)
    cfgx2_cumhist = np.cumsum(cfgx2_hist, axis=1)
    cfgx2_cumhist_percent = ((100 * cfgx2_cumhist) / cfgx2_cumhist.T[(- 1)].T[:, None])
    return (cfgx2_cumhist_percent, edges)