JuliaPy / JuliaPy/PythonPlot.jl

`bbox_inches="tight"` hardcoded

未关闭
#31 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Julia
星标
85
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

All figures are displayed with matplotlib's auto-selection of the crop:

https://github.com/JuliaPy/PythonPlot.jl/blob/fe588f4e3b084b9d0ada8641939c6331def77036/src/PythonPlot.jl#L86

This is a great default.
But sometimes you want to have more control over the bbox (especially when working with extreme aspect ratios, when `"tight"` produces totally different figsizes than what you requested).

Also, if in your rcparams, `savefig.bbox` is set to `"standard"` (the default) and not `"tight"`, then your saved figures will differ from the displayed figures, which is confusing.

So, it would be nice if this hardcoded setting was somehow configureable in PythonPlot.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start at src/PythonPlot.jl around line 86, where bbox_inches="tight" is hardcoded, and review how matplotlib rcparams currently affect displayed and saved figures. Determine the configuration surface needed for bbox selection; done means callers can control this setting and displayed figures remain consistent with the configured savefig.bbox behavior.

由索引模型根据 Issue 内容生成。

评估

技术栈
julia, python
领域
data-visualization
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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