Open rgaiacs opened 7 years ago
Matplotlib issue
plt.savefig(..., bbox_inches='tight')
It's more an ipython/ipykernel issue, because the inline backend hardcodes bbox_inches='tight'
as seen in
https://github.com/ipython/ipykernel/blob/7b2727d827a95d2059c9d9d9354899feabb642ee/ipykernel/pylab/config.py#L83
A solution is to change the config, e.g. via
%matplotlib inline
%config InlineBackend.print_figure_kwargs = {'bbox_inches':None}
Sorry if this isn't the correct place to report this. I didn't know for sure where to report. Let me know the correct place and I will move it.
Summary
(matplotlib) Inline plot is fine but the same plot created with
savefig
has part of the visualisation cropped.Inline example
savefig
exampleCode
The
plot_pie()
function in the first image isEnvironment