question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mode:text for regl-scatter2d

See original GitHub issue

I have a few bio customers who need to display hundreds to thousands of single letter markers like in the below graph:

image

@dfcreative already has a great example of single-letter rendering for regl-scatter2d here: https://dfcreative.github.io/regl-scatter2d/copyrights.html

I’d like to propose that mode: text be enabled for scattergl, but only work for single letters (for now).

Note that mode: text currently does not do anything for scattergl: https://codepen.io/plotly/pen/dmZNjM

We’ve tried creating graphs like the above with SVG, but for a larger number of letters, they are too slow. Here is an SVG example with a mode: text scatter trace overlaid on a heatmap trace: https://plot.ly/~jackp/18395/ (Note how long it takes to update when dragging the slider).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

2-D scatter plot of text - MATLAB textscatter - MathWorks
This MATLAB function creates a text scatter plot with elements of str at the locations specified by the vectors x and y, and...
Read more >
Scatter plots with a legend — Matplotlib 3.6.2 documentation
To create a scatter plot with a legend one may use a loop and create one scatter plot per item to appear in...
Read more >
Scatter plot with different text at each data point - Stack Overflow
I'm not aware of any plotting method which takes arrays or lists but you could use annotate() while iterating over the values in...
Read more >
Text and annotations in Python - Plotly
As a general rule, there are two ways to add text labels to figures: Certain trace types, notably in the scatter family (e.g....
Read more >
Simple Scatter Plots | Python Data Science Handbook
This is an excerpt from the Python Data Science Handbook by Jake VanderPlas; Jupyter notebooks are available on GitHub. The text is released...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found