问题 I have to create a group of matplotlib figures, which I would like to directly present in a PDF report without saving them as a file. The data for my plots is stored in a Pandas DataFrame: Right now I do not know other better option than first save the image and use it later. I am doing something like that: import matplotlib.pylab as plt from reportlab.platypus import BaseDocTemplate, Image for index, row in myDataFrame.iterrows(): fig = plt.figure() plt.plot(row['Xvalues'], row['Yvalues'],'o