Consider making marker
private and instead only set it in add_markers
or start_marking
#141
Labels
API
Issues that relate to the API itself rather than implementations
enhancement
New feature or request
question
Further information is requested
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 instart_marking
.add_markers
also usesself.markers
, but does not have amarkers
keyword.So I see two ways to fix this:
markers
keyword toadd_markers
self.markers
privatemarkers
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
cc @pllim @mwcraig
The text was updated successfully, but these errors were encountered: