Код: Выделить всё
with PdfPages('multipage_pdf.pdf') as pdf:
fig = plt.figure(figsize=(11.69,8.27))
x = df1.index
y1 = df1[col1]
y2 = df1[col2]
plt.plot(x, y1, label=col1)
plt.plot(x, y2, label=col2)
plt.legend(loc='best')
plt.grid(True)
plt.title('Title')
txt = 'this is an example'
plt.text(1,1,txt)
pdf.savefig()
plt.close()
Можно ли создать первую страницу только с текстом?
Заранее спасибо
Подробнее здесь: https://stackoverflow.com/questions/494 ... matplotlib
Мобильная версия