I am trying by many ways to insert a plot from matplotlib into a pdf file using FPDF. The task would be easy just by saving the image into a file and inserting it into the pdf.