Closed
Description
Right now there's a mix of a stateful and a non-stateful idiom in how you set the style of markers. self.markers
is settable by the user, but it can also be set in start_marking
. add_markers
also uses self.markers
, but does not have a markers
keyword.
So I see two ways to fix this:
- Add a
markers
keyword toadd_markers
- Do 1 and also make
self.markers
private - remove
markers
fromstart_marking
I really don't like 3 because I think it just makes sense to be able to set your marker style when you add the marks. So that leaves 1 and 2 - 2 is more "pure" (i.e., there's then one way to do it), but has the downside of breaking backwards compatibility (which we may or may not care about).
Triggered by spacetelescope/jdaviz#699
Metadata
Metadata
Assignees
Type
Projects
Status
Done