how can I save the data as archive to do another graphic type on my computer? #66
Unanswered
MatiasMarambio
asked this question in
Q&A
Replies: 1 comment
-
Hi, You should just need to add this line at the end of the script after g.savefig('replace/this/with/the_path_to_your_output_image.png') You can add other arguments to customize the quality of the image generated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I run this command on Jupyter,
import seaborn as sns
import pandas as pd
reorganize data
data = df.reset_index()
data = pd.melt(data, id_vars=["Frame"], var_name=["residue","interaction"])
data = data[data["value"] != False]
data.reset_index(inplace=True, drop=True)
plot
sns.set_theme(font_scale=.8, style="white", context="talk")
g = sns.catplot(
data=data, x="interaction", y="Frame", hue="interaction", col="residue",
hue_order=["Hydrophobic", "HBDonor", "HBAcceptor", "PiStacking", "CationPi", "Cationic"],
height=3, aspect=0.2, jitter=0, sharex=False, marker="_", s=8, linewidth=3.5,
)
g.set_titles("{col_name}")
g.set(xticks=[], ylim=(-.5, data.Frame.max()+1))
g.set_xticklabels([])
g.set_xlabels("")
g.fig.subplots_adjust(wspace=0)
g.add_legend()
g.despine(bottom=True)
for ax in g.axes.flat:
ax.invert_yaxis()
ax.set_title(ax.get_title(), pad=15, rotation=60, ha="center", va="baseline")
how can I save the data as archive to do another graphic type on my computer?
I'm a newbie on Jupyter and ProLIF
Beta Was this translation helpful? Give feedback.
All reactions