コード例 #1
0
ファイル: plot.py プロジェクト: dandersson/nlargest
def plot_ref_against_init_2(data, **kwargs):
    """Plot reference implementations against initialisation method 2."""
    plot_series = [
        ('nlargest_ref_sorted', '-x'),
        ('nlargest_ref_heapq', '-x'),
        ('nlargest_list2', '-*'),
        ('nlargest_heapreplace2', '-o'),
        ('nlargest_manual_heapreplace2', '-v'),
        ('nlargest_heappushpop2', '-s'),
    ]
    plotter.plot_select_series(data, plot_series, **kwargs)
コード例 #2
0
ファイル: plot.py プロジェクト: dandersson/nlargest
def plot_ref_against_init_2(data, **kwargs):
    """Plot reference implementations against initialisation method 2."""
    plot_series = [
        ('nlargest_ref_sorted', '-x'),
        ('nlargest_ref_heapq', '-x'),
        ('nlargest_list2', '-*'),
        ('nlargest_heapreplace2', '-o'),
        ('nlargest_manual_heapreplace2', '-v'),
        ('nlargest_heappushpop2', '-s'),
    ]
    plotter.plot_select_series(data, plot_series, **kwargs)
コード例 #3
0
ファイル: plot.py プロジェクト: dandersson/nlargest
def plot_init_2_against_init_3(data, **kwargs):
    """Plot initialisation method 2 against initialisation method 3."""
    plot_series = [
        ('nlargest_list2', '-x'),
        ('nlargest_list3', '-x'),
        ('nlargest_heapreplace2', '-o'),
        ('nlargest_heapreplace3', '-o'),
        ('nlargest_manual_heapreplace2', '-v'),
        ('nlargest_manual_heapreplace3', '-v'),
        ('nlargest_heappushpop2', '-s'),
        ('nlargest_heappushpop3', '-s'),
    ]
    plotter.plot_select_series(data, plot_series, **kwargs)
コード例 #4
0
ファイル: plot.py プロジェクト: dandersson/nlargest
def plot_init_2_against_init_3(data, **kwargs):
    """Plot initialisation method 2 against initialisation method 3."""
    plot_series = [
        ('nlargest_list2', '-x'),
        ('nlargest_list3', '-x'),
        ('nlargest_heapreplace2', '-o'),
        ('nlargest_heapreplace3', '-o'),
        ('nlargest_manual_heapreplace2', '-v'),
        ('nlargest_manual_heapreplace3', '-v'),
        ('nlargest_heappushpop2', '-s'),
        ('nlargest_heappushpop3', '-s'),
    ]
    plotter.plot_select_series(data, plot_series, **kwargs)