コード例 #1
0
ファイル: dna_lds.py プロジェクト: fivejjs/pgmult
def plot_figure_legend(results_dir):
    """
    Make a standalone legend
    :return:
    """
    from hips.plotting.layout import create_legend_figure
    labels = ["SBM-LDS (Gibbs)", "HMM (Gibbs)", "Raw LDS (Gibbs)", "LNM-LDS (pMCMC)"]
    fig = create_legend_figure(labels, colors[:4], size=(5.25,0.5),
                               lineargs={"lw": 2},
                               legendargs={"columnspacing": 0.75,
                                           "handletextpad": 0.1})
    fig.savefig(os.path.join(results_dir, "legend.pdf"))
コード例 #2
0
ファイル: ctm.py プロジェクト: fivejjs/pgmult
def plot_figure_legend():
    """
    Make a standalone legend
    :return:
    """
    from hips.plotting.layout import create_legend_figure
    labels = ["SB-CTM", "LN-CTM (Gibbs)", "LN-CTM (VB)", "LDA (Gibbs)"]
    fig = create_legend_figure(labels, colors[:4], size=(5.25,0.5),
                               lineargs={"lw": 2},
                               legendargs={"columnspacing": 0.75,
                                           "handletextpad": 0.125})
    fig.savefig(os.path.join("results", "newsgroups", "legend.pdf"))
コード例 #3
0
def plot_figure_legend():
    """
    Make a standalone legend
    :return:
    """
    from hips.plotting.layout import create_legend_figure
    labels = ["SB-CTM", "LN-CTM (Gibbs)", "LN-CTM (VB)", "LDA (Gibbs)"]
    fig = create_legend_figure(labels, colors[:4], size=(5.25,0.5),
                               lineargs={"lw": 2},
                               legendargs={"columnspacing": 0.75,
                                           "handletextpad": 0.125})
    fig.savefig(os.path.join("results", "newsgroups", "legend.pdf"))
コード例 #4
0
def plot_figure_legend(results_dir):
    """
    Make a standalone legend
    :return:
    """
    from hips.plotting.layout import create_legend_figure
    labels = [
        "SBM-LDS (Gibbs)", "HMM (Gibbs)", "Raw LDS (Gibbs)", "LNM-LDS (pMCMC)"
    ]
    fig = create_legend_figure(labels,
                               colors[:4],
                               size=(5.25, 0.5),
                               lineargs={"lw": 2},
                               legendargs={
                                   "columnspacing": 0.75,
                                   "handletextpad": 0.1
                               })
    fig.savefig(os.path.join(results_dir, "legend.pdf"))