-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Open
Labels
Description
Problem
If I want to align title to the side, I can do it with ax.set_title() using loc parameter:
fig, ax = plt.subplots(facecolor="whitesmoke")
ax.set_title("The title", loc="left")
But I cannot do the same with fig.suptitle():
fig, ax = plt.subplots(facecolor="whitesmoke")
fig.suptitle("The title", loc="left")
As this produces an error:
I think this is incosistent behaviour.
And I know the docs says this is a function for centered title:
But it also provides parameters to deviate from center via x and ha:
fig, ax = plt.subplots(
facecolor="whitesmoke"
)
fig.suptitle("The title", x=0.12, ha="left")
So wouldn't it be easier to have the loc parameter in the fig.suptitle() all along?
Proposed solution
Add loc parameter to the fig.suptitle() to provide consistent API with ax.set_title()
Reactions are currently unavailable