Added particle labelling to plot.annotate(). - #358
Conversation
|
Nice! I notice this could be made more flexible by accepting a string argument for |
|
|
||
| @make_axes | ||
| def annotate(centroids, image, circle_size=None, color=None, | ||
| def annotate(centroids, image, circle_size=None, label=False, color=None, |
There was a problem hiding this comment.
please put new kwargs at the end of the list (think of the case where someone is using annotate(cent, img, 5, 'b') this is now silently (as in the code runs) but does something different).
|
@hohlraum Are you planning to update the PR? It would be nice to have this addition in the next release. |
|
@hohlraum Any chance you'll be able to revisit this? |
Particles can be automatically laballed by plot.annotate(). Also includes a style dictionary similar to that for the markers and background image.