'How to add a title to visuz volcano plot
I'm using bioinfokit.visuz.GeneExpression.volcano to create a volcano plot. I can't figure out how to apply a title. I'm not sure if there is an object and how/if to control it with matiplotlib. Everything I try fails.
I'm following their tutorial example:
from bioinfokit import analys, visuz
df = analys.get_data('volcano').data
visuz.GeneExpression.volcano(df=df, lfc='log2FC', pv='p-value',show=True)
A few things I've tried unsuccessful.
ax = visuz.GeneExpression.volcano(df=df, lfc='log2FC', pv='p-value',show=True)
ax.set_title('title')
fig, ax = plt.visuz.GeneExpression.volcano(df=df, lfc='log2FC', pv='p-value',show=True)
plt.title('title')
visuz.GeneExpression.volcano(df=df, lfc='log2FC', pv='p-value',show=True).set_title('title')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
