You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wow thanks for this thread. I was just about to write a bug report since my figures were always saved with a black facecolor instead of the correct white one (that is also rendered correct in IPython).
Just adding facecolor=fig.get_facecolor() to the save parameters solved this.
I agree that this is unintuitive.
Activity
tacaswell commentedon Dec 13, 2016
We are always happy to get PRs to clarify documentation!
If you do not pass a
facecolorit defaults to the value ofrcParams['savefig.facecolor']which should have defaulted to white.It is less 'is not applied' than the background patches are simply not drawn if you ask them to not be drawn.
Spenhouet commentedon May 25, 2019
Wow thanks for this thread. I was just about to write a bug report since my figures were always saved with a black facecolor instead of the correct white one (that is also rendered correct in IPython).
Just adding
facecolor=fig.get_facecolor()to the save parameters solved this.I agree that this is unintuitive.