Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Support overall figure title with subplots via `gpos` argument

未关闭
#79 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@sadielbartholomew 已经在做这个了。

开始于 2024年10月11日。

评估

这个 Issue 还没有评估数据。

描述

enhancement

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.

主要语言
Python
星标
21
派生
11
平均合并
7 小时 11 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NCAS-CMS/cf-plot 的其他 Issue

查看 NCAS-CMS/cf-plot 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。