You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to load a matplotlib / seaborn plot that was already created #60
I'm creating plots in multiple notebooks / python scripts and save them to pickle. Than from a central notebook I combine them in the final figure using patchworklib. to do this i am trying it in two different ways:
Exporting bricks object to pickle and loading the pickle object somewhere else
import seaborn as sns
import patchworklib as pw
ax = pw.Brick(figsize=(3, 2))
sns.lineplot(melted_dilution, x="VAF %", y="Metric Value", hue="Metric", ax=ax)
dump_to_pickle(ax)
and than in another notebook
ax = load_pickle(path_to_file)
ax.savefid()
Exporting the matplotlib figure object, loading it in the other notebook and putting the ax in the Bricks object
Activity