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

adding axis handle #3

Open
gflores87 opened this issue Aug 14, 2018 · 4 comments
Open

adding axis handle #3

gflores87 opened this issue Aug 14, 2018 · 4 comments

Comments

@gflores87
Copy link

Awesome tool, is it possible to add the axis handle to display the results into a subplot?

ranaroussi added a commit that referenced this issue Aug 16, 2018
@ranaroussi
Copy link
Owner

Now you can :)

Just upgrade to the latest version and add ax=YOUR-AX to plot_returns_heatmap().

Cheers!

@gflores87
Copy link
Author

gflores87 commented Aug 16, 2018

Thank you very much :) Are there any know issues with padding? I'm using a subplot2grid and the monthly returns are not plotted over the entire bottom and it seems to be padded on the right (plotting not the mrh plot but a vanilla plot on the bottom axis does cover the entirety of the bottom row)

Important to mention that if I remove the colorbar, if fits nicely into the grid, so it must be an issue with the color bar positioning/ padding

scorecard

@ranaroussi
Copy link
Owner

Try specifying margins for the axis you’re using (ie ax.margins(0.0)) and let me know if this fixed the padding issue for you.

@ranaroussi ranaroussi reopened this Aug 17, 2018
@gflores87
Copy link
Author

gflores87 commented Aug 17, 2018

modifying the margins didn't help, still the same behavior :S

what is strange is that if I remove the colorbar, if fits nicely into the grid, so it must be an issue with the color bar positioning/ padding

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