astrowidgets icon indicating copy to clipboard operation
astrowidgets copied to clipboard

Would hide_markers method be useful?

Open pllim opened this issue 2 years ago • 0 comments

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 https://github.com/spacetelescope/jdaviz/pull/2410

pllim avatar Aug 31 '23 21:08 pllim