Skip to content

[BUG] add_markers on a viewer clears the markers in the other viewers #3471

@eteq

Description

@eteq

Jdaviz component

Imviz

Description

I have a workflow where I create multiple viewers to look at subsets of my data. I want to put a different set of markers on each of the viewers. It's already in an astropy table so I can just imviz.viewrers[viewer-name].add_markers(...). But to my surprise, doing this in one viewer clears the markers in the previous viewer!

This is very counter-intuitive and breaks several use cases so I'm assuming it's a bug. But if it's intended behavior, this can be viewed as a request to change the behavior 😉

How to Reproduce

  1. Install jdaviz from coda-forge
  2. Add at least one new viewer view imviz.create_image_viewer
  3. Do viewer.add_markers(...) sequentially on the first and then second viewer.

Expected behavior

I should see two separate set of markers on each viewer

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageIssue opened via template and needs triaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions