Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support overall figure title with subplots via gpos argument #79

Open
sadielbartholomew opened this issue Oct 11, 2024 · 0 comments
Open
Assignees

Comments

@sadielbartholomew
Copy link
Member

The rows and columns keyword arguments to gopen along with the gpos function allows one to create multiple subplot plots on one figure, but there is no built in-way to provide an overall title for the figure, to cover multiple plots.

We should support a simple, native way to add an overall title to the subplots. My suggestion is to allow this by providing a new keyword argument, overall_title or figure_title or similar, with a larger default font size that is configurable by another new keyword argument such as overalltitlefontsize.

Note at present, the only way to get an overall title is to defer to pyplot and use a suptitle (super title I believe this stands for), like so:

cfp.gopen(rows=3, columns=3)
plt.suptitle(<title>, fontsize=<fontsize>, <other args>)
...
cfp.gclose()

which is currently used for the second plot in the 12th documentation recipe as well as multiple new recipes in PR form, so as part of completing this we should update the recipes to use the new cf-plot built-in means to add the overall title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant