Skip to content

Default setting of figure transparency in NbAgg is a performance problem #5419

@mdboom

Description

@mdboom

I missed the implications of #3552 when it went through.

If any part of the plot image is transparent, a full image frame is sent in order to make sure there isn't any ghosting. The default value of nbagg.transparent == True unfortunately means that full images are always sent for every frame. This results in lower framerates and flickering.

I can workaround this by setting figure.facecolor: white and nbagg.transparent: False, but I wonder if we shouldn't make this the default. 2.0 might be a good opportunity to make figure.facecolor: white the default for every backend anyway, which does generally look more modern.

It does mean it IPython ever changes their style to something on a non-white background things may not look as nice, but we'll cross that when we get there.

Cc: @pelson

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