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

How to adjust borders and wipe out empty spaces #193

Closed
ADuden opened this issue Jun 26, 2020 · 4 comments
Closed

How to adjust borders and wipe out empty spaces #193

ADuden opened this issue Jun 26, 2020 · 4 comments
Labels
enhancement New feature or request question Further information is requested released code merged into repo AND released to Pypi

Comments

@ADuden
Copy link

ADuden commented Jun 26, 2020

If would be cool to have some plt.subplots_adjust(top=1, bottom=0, right=1, left=0) functionality, because I have huge white empty space around the plot. And I can't fix it even manually with "configure subplot" at the bottom. Thanks
photo_2020-06-27_00-40-30

@ADuden ADuden added the question Further information is requested label Jun 26, 2020
@DanielGoldfarb
Copy link
Collaborator

Try

mpf.plot(data,...,tight_layout=True,...)

Let me know if that works for you.

@ADuden
Copy link
Author

ADuden commented Jun 27, 2020

Thank you for the answer, and as you can see, candles are stretched out, but the plot isn't
Screenshot from 2020-06-27 22-57-16

DanielGoldfarb added a commit to DanielGoldfarb/mplfinance that referenced this issue Jun 28, 2020
DanielGoldfarb added a commit to DanielGoldfarb/mplfinance that referenced this issue Jun 28, 2020
DanielGoldfarb added a commit to DanielGoldfarb/mplfinance that referenced this issue Jun 28, 2020
@DanielGoldfarb
Copy link
Collaborator

@ADuden
I have just updated the tight_layout=True functionality so that it will also adjust the Figure padding surrounding the plot.

Please pip install --upgrade mplfinance, confirm you get version 0.12.6a2, then try tight_layout=True again. and let me know if that works for you.

Thanks. All the best. --Daniel

@DanielGoldfarb DanielGoldfarb added enhancement New feature or request released code merged into repo AND released to Pypi labels Jun 28, 2020
@ADuden
Copy link
Author

ADuden commented Jun 29, 2020

Thanks a lot, everything works great)

@ADuden ADuden closed this as completed Jun 29, 2020
DanielGoldfarb added a commit to DanielGoldfarb/mplfinance that referenced this issue Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested released code merged into repo AND released to Pypi
Projects
None yet
Development

No branches or pull requests

2 participants