I plotted two plots side by side in an ipython notebook cell. But, I am having trouble changing the size of the title. I can change the size of the labels by adding the argument fontsize = 20
. How do I change the title for df
and df2
.
fig, axes = plt.subplots(ncols=2, figsize = (20,10))
df.plot('barh', title = 'Legal Collectible Answer Distribution', fontsize = 20, ax = axes[0])
df2.plot(kind = 'pie', autopct = '%1.0f%%', legend = False, title = 'Legal Collectible Answer Distribution', fontsize = 20, ax =axes[1])
You can change the size of an existing title on the Axes using title.set_size()
axes[0].title.set_size(40)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With