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
{{ message }}
Repository navigation
[Bug]: savefig(..., transparent=True) does not make inset_axes transparent #22674
frompylabimport*gca().inset_axes([.1, .2, .3, .4]); savefig("/tmp/test.png", transparent=True)
# then display /tmp/test.png with a viewer that distinguishes between white and transparent: the inset axes is not transparent.
Actual outcome
Inset is not transparent.
Expected outcome
Inset is transparent (... well, admittedly I guess whether one wants this or not may be figure-dependent?) (mildly relatedly, see also #10023.)
transparent=True should make all Axes transparent. Should more special needs arise, we can still add more options like transparent='figure' later, but I would hold that until someone asks for it.
Activity
QuLogic commentedon Mar 22, 2022
I'm surprised that the regular
Axeswas made transparent in the first place, but apparently that's what it's supposed to do.sramesh750 commentedon Mar 23, 2022
I could start working on this issue!
timhoffm commentedon Mar 23, 2022
@sramesh750 Go for it!
transparent=Trueshould make all Axes transparent. Should more special needs arise, we can still add more options liketransparent='figure'later, but I would hold that until someone asks for it.rcomer commentedon Feb 25, 2023
Closed by #24816 I think.