Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would hide_markers method be useful? #176

Open
pllim opened this issue Aug 31, 2023 · 0 comments
Open

Would hide_markers method be useful? #176

pllim opened this issue Aug 31, 2023 · 0 comments
Labels
API Issues that relate to the API itself rather than implementations

Comments

@pllim
Copy link
Member

pllim commented Aug 31, 2023

Would a new method that hide the marker(s) instead of deleting them be useful? For example, if you want to, say, blink through different groups of markers, it is much cheaper to toggle their visibility than to completely removing/re-adding them from/to the backend every time.

Would all backends have concept of hide vs remove?

Signature should be similar to remove_markers, so something like this:

def hide_markers(marker_name=None):
    # code here

cc @mwcraig @eteq

xref spacetelescope/jdaviz#2410

@pllim pllim added the API Issues that relate to the API itself rather than implementations label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues that relate to the API itself rather than implementations
Projects
None yet
Development

No branches or pull requests

1 participant