Skip to content

Create a new buffer and world object if necessary when setting an existing Graphic #869

Open
@kushalkolar

Description

@kushalkolar

We can implement this pretty easily, would make things easier for users, tradeoff is that users are less aware that setting data this way is slower than setting data that fits in an existing buffer. We can just document it well.

image = fig[0, 0].add_image(np.random.rand(10, 10))

# allow this, internally delete the existing buffer 
# and world object and create a new one
image.data = np.random.rand(20, 20)

Might not have to create a new world object, might be possible to just replace the geometry I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No 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