I tried to develop a GUI to make line plots and generate report using tkinter in python. Now I need to save plots and some comments for that plot into a document file using the tkinter GUI. How to paste the plots in the document file and save the document?
def plott():
plt.plot(data2['Load'],data2[y.get()])
plt.ylabel("Y")
plt.xlabel("Load")
plt.savefig("plot.png")
plt.show()
def submit():
global docx_file
import_file_path = filedialog.askopenfilename()
docx_file = Document(import_file_path)