Issue
I am using collaboratory(online jupyter notebook) I have the following code i am plotting some graphs using this functions and want to save plots locally how can I do this ?
def make_plot_comparison(Xlabel,Ylabel,l1,l2,l1_title,l2_title,name):
plt.xlabel(Xlabel)
plt.ylabel(Ylabel)
plt.plot(l1,label=l1_title)
plt.plot(l2,label=l2_title)
plt.legend(loc='center right')
plt.title(name)
#plt.xlim(-5, 25)
plt.savefig("abc.png")
plt.show()
Solution
maybe it can save the picture independently
from google.colab import files
plt.savefig("abc.png")
files.download("abc.png")
Answered By - 이성령
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.