matplotlib / matplotlib/napari-matplotlib
Saving a figure as image has some style issues
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 46
- 派生
- 24
- PR 合并指标
- 30 天内没有已合并 PR
描述
When saving a figure as image while using the dark theme the style poses some problems. The axe ticks and labels remain coloured light grey as stated by the style sheet, but this makes them nearly invisible in the saved image.
I would suggest to either use a non-transparent facecolor (napari theme background) or add specific colouring for savefig to the style sheet: `figure.facecolor : 262930` or `savefig.facecolor : 262930`
Another solution would be to change the colours for the axes, ticks and labels for saving, but as far as I know this can't be achieved through matplotlib without changing the colours of the displayed figure as well.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定文件或测试。首先重现保存深色主题图形的过程,并结合主题样式表检查保存为图像的路径。完成的标准是:保存的图像具有清晰可读的坐标轴刻度和标签,同时不会导致所显示图形的样式不正确。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- matplotlib, python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100