JuliaPy / JuliaPy/PyPlot.jl

PyPlot ignores bbox="tight" when saving

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

描述

I have searched the forums of stackoverflow and others to save a figure in pyplot without any padding, frame or axes/ticks. There seems to be an array of solutions, none of them seem to work on the Julia interface to PyPlot. Specifically, when I use
`savefig(outname, bbox_inches="tight", pad_inches=0.0, frameon=false, dpi=90)`
it seems to ignore completely both the bbox_inches and the pad_inches keywords. The saved figure
has exactly the same white unsymmetrical frame that all default figures have. `frameon` only seems to make it transparent, not to eliminate it.

贡献指南

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

调研方向

Start by reproducing the Julia PyPlot savefig call with bbox_inches="tight" and pad_inches=0.0, then trace the savefig entry point to see how these keywords are passed. Done means the saved figure respects both options and the unchanged default padding is covered by a regression test.

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

评估

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

把新 issue 发到你的邮箱

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