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.
I find the current handling of background colors very non-intuitive:
facecolor
is not applied forsavefig()
by defaultfacecolor
is not applied settingframeon=False
axis_bgcolor
is not applied when hiding axis lines/ticks viaaxis('off')
So using a white plain surface to draw objects needs the following code:
My suggestion
savefig()
by defaultaxis_bgcolor
andaxis('off')
that this setting is ignoredfacecolor
andframeon
that this setting is ignoredThe text was updated successfully, but these errors were encountered: