Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. # Saving Seaborn plot as png file
  2. relplot = sns.relplot(data=df2, x="2FL [g/kg]", y="Yield accumulated [%]", hue="Strain", alpha=0.7, palette="tab10")
  3. relplot.savefig(r"u:\Data science\Fig2.png")
  4.  
  5. # Saving with Matplotlib using tight layout
  6. df_2FL[["Total 2'FL [kg]", "Total DFL [kg]"]].plot.bar(stacked=True).legend(loc='lower left').get_figure().savefig(r"u:\Data science\Factory reports\Fig2019 2FL-DFL total.png", bbox_inches = "tight")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement