Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request for bbox_inches = "tight" #94

Open
joglekara opened this issue Apr 11, 2022 · 1 comment
Open

Feature request for bbox_inches = "tight" #94

joglekara opened this issue Apr 11, 2022 · 1 comment

Comments

@joglekara
Copy link

First, thanks for putting this together. This is great and saves me an incredible amount of time and effort.

Is there any interest in putting in a flag for bbox_inches = "tight" in the savefig call here

fig.savefig(

I get a fair amount of whitespace with the config that I have at the moment that will be removed by this fix. We can probably add a flag to the save call itself and send it downstream, but open to ideas! Also, happy to send in the PR too if this makes sense

@jbusecke
Copy link
Owner

Hey @joglekara, I think that would be a great idea.

I think the easiest way to do this is to add a kwarg here:

def save_single_frame(fig, frame, odir=None, frame_pattern="frame_%05d.png", dpi=100):
.

The question is that how does the user invoke that from the top level API? like mov.save(...,bbox_inches = "tight")?

Happy to iterate further on this, and if you would try a PR that would be extremely helpful, since I am quite strapped for time these days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants