8000 [Bug]: savefig(..., transparent=True) does not make inset_axes transparent · Issue #22674 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: savefig(..., transparent=True) does not make inset_axes transparent #22674
Closed
@anntzer

Description

@anntzer

Bug summary

All's in the title.

Code for reproduction

from pylab import *
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.)

Additional information

No response

Operating system

arch linux

Matplotlib Version

3.6.0.dev1856+ga2ddfc0c0f

Matplotlib Backend

agg

Python version

310

Jupyter version

ENOSUCHLIB

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0