Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hey there 馃憢

Not sure if this is a silly question but curious to know if regl-scatterplot has the ability to search/highlight scatter labels like in https://projector.tensorflow.org/ - or would that something need to be built?

(btw amazing work - repo/examples are awesome!)

Zac

You must be logged in to vote

Unfortunately, there isn't any built in functionality for that as regl-scatterplot is a bit more "low level" than Tensorflow's Projector app.

Having said that, it should be fairly simple to implement this yourself depending on your data source and structure. For instance, you could index the point labels with something like a TRIE or DAWG (e.g., https://github.com/mckoss/dawg) for fuzzy string matching and then use scatterplot.select(pointIndices).

If you happen to work in with Python, there's a sister application called jupyter-scatter, which integrates into the Pandas ecosystem. That integration makes searching for data points fairly simple.

import jscatter
scatter = jscatter.Scatter(data=

Replies: 2 comments · 1 reply

Comment options

Unfortunately, there isn't any built in functionality for that as regl-scatterplot is a bit more "low level" than Tensorflow's Projector app.

Having said that, it should be fairly simple to implement this yourself depending on your data source and structure. For instance, you could index the point labels with something like a TRIE or DAWG (e.g., https://github.com/mckoss/dawg) for fuzzy string matching and then use scatterplot.select(pointIndices).

If you happen to work in with Python, there's a sister application called jupyter-scatter, which integrates into the Pandas ecosystem. That integration makes searching for data points fairly simple.

import jscatter
scatter = jscatter.Scatter(data=df, x="column_a", y="column_b")
scatter.selection(df.query("label == 'my label'").index)
You must be logged in to vote
1 reply
@zacrafidi
Comment options

Amazing thanks!

Answer selected by flekschas
Comment options

Also, there are no silly questions, so keep them coming! :)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
馃檹
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.