monthly-returns-heatmap icon indicating copy to clipboard operation
monthly-returns-heatmap copied to clipboard

adding axis handle

Open gflores87 opened this issue 7 years ago • 4 comments

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

gflores87 avatar Aug 14 '18 00:08 gflores87

Now you can :)

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

Cheers!

ranaroussi avatar Aug 16 '18 07:08 ranaroussi

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

gflores87 avatar Aug 16 '18 12:08 gflores87

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 avatar Aug 17 '18 09:08 ranaroussi

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

gflores87 avatar Aug 17 '18 15:08 gflores87