matplotlib / matplotlib/ipympl
Implement needs_background metadata
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Jupyter Notebook
- 星标
- 1.7k
- 派生
- 234
- PR 合并指标
- 30 天内没有已合并 PR
描述
Describe the issue
The matplotlib-inline backend provides the needs_background metadata which allows to force a light background under plot images to improve readability when using a JupyterLab dark theme. We should probably implement the same for the static image.
This will not work for the widget repr, but we could probably implement custom logic to mimick this behavior with the widget view.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
阅读 matplotlib_inline/backend_inline.py 第 226-239 行中引用的实现,然后检查 ipympl 的静态图像路径和 widget view。为静态图像实现 needs_background 元数据行为;issue 指出,widget repr 行为可能需要单独的自定义逻辑。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter
- 领域
- data-visualization, frontend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100