예제 #1
0
 def plot_1_2(ax: matplotlib.axes.SubplotBase, diff_df: pd.DataFrame, row_id: int) -> None:
     ax.bar(diff_df.columns, diff_df.loc[row_id], color="red")
     ax.set_title("difference")
     ax.set_xlabel("k")
     ax.set_ylabel("diff")
     diff_df_min = diff_df.min().min()
     diff_df_max = diff_df.max().max()
     if CVResultsAggregator.check_limit(diff_df_min) and CVResultsAggregator.check_limit(diff_df_max):
         ax.set_ylim(diff_df_min - 1, diff_df_max + 1)
예제 #2
0
 def plot_2_1(ax: matplotlib.axes.SubplotBase, pval_df: pd.DataFrame, row_id: int) -> None:
     ax.bar(pval_df.columns, -np.log10(pval_df.loc[row_id]), color="red")
     ax.set_title("significance of difference")
     ax.set_xlabel("k")
     ax.set_ylabel("-log10(p-value)")
     ax.set_ylim(0, 4)