# Path: e3fp_paper/plotting/defaults.py
# class DefaultFonts(object):
# 
#     """Default fonts/sizes for plotting."""
# 
#     def __init__(self):
#         self.panel_label_fontsize = 12
#         self.title_fontsize = 8
#         self.ax_label_fontsize = 8
#         self.ax_ticks_fontsize = 7
#         self.legend_fontsize = 7
# 
# Path: e3fp_paper/crossvalidation/util.py
# def get_auc(fp, tp, adjusted=False):
#     """Calculate AUC from the FP and TP arrays of an ROC curve."""
#     auc_val = sk_auc(fp, tp)
#     if adjusted:
#         auc_val -= 0.5
#     return auc_val


import numpy as np
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
from .defaults import DefaultFonts
from ..crossvalidation.util import get_auc
        If float is provided, value corresponds to the PRC expected from a
        random classifier, which is a horizontal line corresponding to percent
        of pairs which are positives.
    show_legend : bool, optional
        Show legend.
    only_best : bool, optional
        Only plot best (highest AUC) PRC curve in a set.
    title : str, optional
        Title of plot
    alpha : float, optional
        Alpha of curves.
    legend_fontsize : int, optional
        Font size of legend

    Deleted Parameters
    ------------------
    y_min : float, optional
        Minimum value of y, used to visually discriminate between well-
        performing curves.
    """
    legend_lines = []
    legend_names = []

    if isinstance(prc_lists[0], np.ndarray):
        prc_list = [[x] for x in prc_lists]

    for i, prc_list in enumerate(prc_lists):
        color = get_from_list(colors, i)
        name = get_from_list(names, i)
        linestyle = get_from_list(linestyles, i)

# Path: e3fp_paper/plotting/defaults.py
# class DefaultFonts(object):
# 
#     """Default fonts/sizes for plotting."""
# 
#     def __init__(self):
#         self.panel_label_fontsize = 12
#         self.title_fontsize = 8
#         self.ax_label_fontsize = 8
#         self.ax_ticks_fontsize = 7
#         self.legend_fontsize = 7
# 
# Path: e3fp_paper/crossvalidation/util.py
# def get_auc(fp, tp, adjusted=False):
#     """Calculate AUC from the FP and TP arrays of an ROC curve."""
#     auc_val = sk_auc(fp, tp)
#     if adjusted:
#         auc_val -= 0.5
#     return auc_val


# Path: e3fp_paper/plotting/validation.py
import numpy as np
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
from .defaults import DefaultFonts
from ..crossvalidation.util import get_auc

        If float is provided, value corresponds to the PRC expected from a
        random classifier, which is a horizontal line corresponding to percent
        of pairs which are positives.
    show_legend : bool, optional
        Show legend.
    only_best : bool, optional
        Only plot best (highest AUC) PRC curve in a set.
    title : str, optional
        Title of plot
    alpha : float, optional
        Alpha of curves.
    legend_fontsize : int, optional
        Font size of legend

    Deleted Parameters
    ------------------
    y_min : float, optional
        Minimum value of y, used to visually discriminate between well-
        performing curves.
    """
    legend_lines = []
    legend_names = []

    if isinstance(prc_lists[0], np.ndarray):
        prc_list = [[x] for x in prc_lists]

    for i, prc_list in enumerate(prc_lists):
        color = get_from_list(colors, i)
        name = get_from_list(names, i)
        linestyle = get_from_list(linestyles, i)

        aucs = [get_auc(x[0], x[1]) for x in prc_list]