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

Extra white space around plot #19

Open
gageoleighton opened this issue Jul 19, 2018 · 1 comment
Open

Extra white space around plot #19

gageoleighton opened this issue Jul 19, 2018 · 1 comment

Comments

@gageoleighton
Copy link

When generating a figure of certain data using the --xmax function, there is excess white space inserted below the plot. For the data file attached I have found that using --xmax 199 , or anything less, results in excess white space whereas --xmax 200 , or greater, does not.

It also does not appear to be format specific; pdf and png show the same resulting white space.

20180614_MBD2p55BR_N15_Run2_GOL_HiTrapSP_1 001 001.zip

@pyahmed
Copy link
Owner

pyahmed commented Oct 30, 2018

It seems this is cause by this line in pycorn-bin.py:
plt.savefig(plot_file, bbox_inches='tight', dpi=args.dpi)

If changed to:
plt.savefig(plot_file, dpi=args.dpi)

it works.

I'm not a matplotlib expert but I was under assumption "tight" should actually remove excess whitespace.

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