This PR introduces the ability to draw line-based annotations via scatterplot.drawAnnotations()
Description
What was changed in this pull request?
Added a new function scatterplot.drawAnnotations() for drawing line-based annotations. Currently the following types of annotations are supported:
Horizontal lines
Vertical lines
Rectangles
Polygons / Lines
For clearing annotations, use scatterplot.clearAnnotations(). Note that scatterplot.clear() will also clear annotations in addition to clearing points and point connections. If you only want to clear points, you can use the newly added scatterplot.clearPoints(), which clears points and point connections. I also added scatterplot.clearPointConnections() to just clear point connections.
This PR introduces the ability to draw line-based annotations via
scatterplot.drawAnnotations()
Description
Added a new function
scatterplot.drawAnnotations()
for drawing line-based annotations. Currently the following types of annotations are supported:For clearing annotations, use
scatterplot.clearAnnotations()
. Note thatscatterplot.clear()
will also clear annotations in addition to clearing points and point connections. If you only want to clear points, you can use the newly addedscatterplot.clearPoints()
, which clears points and point connections. I also addedscatterplot.clearPointConnections()
to just clear point connections.https://flekschas.github.io/regl-scatterplot/annotations.html
Annotations can help better to better correlate or highlight data points or clusters.
Checklist
CHANGELOG.md
updatedREADME.md
added or updated