Skip to content

[Bug]: savefig(..., transparent=True) does not make inset_axes transparent #22674

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy