plt.axis('off')
plt.text(0.5, 0.5, 'my title', ha='center', va='center')
pdf.savefig()
plt.close()
for cat in list(self.cat_vars.keys()):
    if len(self.cat_vars[cat]) > 1:
        plt.figure()
self.cat_vars[cat].plot(kind='bar')
plt.title(cat)
pdf.savefig()
plt.close()
How to create a title page for a PDF document created using matplotlib