matplotlib / matplotlib/ipympl

Implement needs_background metadata

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

还没有人认领这个 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.

See https://github.com/ipython/matplotlib-inline/blob/541b26da2f49d0403994b91cb062e8c438920c44/matplotlib_inline/backend_inline.py#L226-L239

This will not work for the widget repr, but we could probably implement custom logic to mimick this behavior with the widget view.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

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