Commit 63cbe65b authored by Blaise Li's avatar Blaise Li
Browse files

Data in plot_lfc_distribution is a Series.

parent 352dc658
......@@ -454,10 +454,12 @@ def plot_lfc_distribution(res, contrast, fold_type=None):
if fold_type is None:
fold_type = "log2FoldChange"
lfc = getattr(res, fold_type).dropna()
lfc.name = contrast
usetex = mpl.rcParams.get("text.usetex", False)
if usetex:
lfc.columns = [texscape(colname) for colname in lfc.columns]
lfc.name = texscape(contrast)
else:
lfc.name = contrast
# lfc.columns = [texscape(colname) for colname in lfc.columns]
axis = sns.kdeplot(lfc)
axis.set_xlabel(fold_type)
axis.set_ylabel("frequency")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment