JuliaPy / JuliaPy/PythonPlot.jl

`bbox_inches="tight"` hardcoded

Open
#31 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
85
Forks
9
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.