In Matplotlib, centering the title centers it relative to the main body of the chart.
Instead, I want to center it relative to the entire plot, including the y axis and the y axis label.
How can I do this? I'm assuming that at the very least I can manually define the exact horizontal position of the title, but I can't even figure out how to do that.
This generates a plot using title (in red) and supertitle (in blue). They're in slightly different positions, but they both appear to be centered relative to the main chart area of the text.
import pandas as pd
import matplotlib.pyplot as plt
month = ['Jan', 'Feb', 'Mar', 'Apr']
volume = [2900, 1500, 2400, 1200]
d = pd.DataFrame({'Month': month, 'Volume': volume})
_, ax = plt.subplots()
ax.set(ylabel='Volume (cbm)', xlabel='')
b = d.plot(kind='bar', y="Volume", x="Month", ax=ax)
plt.title('Title', color='red')
plt.suptitle('Title', color='blue')
plt.show()
The output: