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"))
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"))
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"))