Plotly.js: 500k point ScatterGL: unselected points don't fade on second selection

Created on 27 Apr 2018  路  6Comments  路  Source: plotly/plotly.js

Overview

When displaing a scattergl trace with a large number of points (> 500k), the second time the selection tool is used the unselected points don't fade into the background.

To reproduce:

1) Run the following codepen (scattergl with 500k points): https://codepen.io/anon/pen/zjoWpO

2) Perform lasso selection
screen shot 2018-04-27 at 12 46 05 pm

Note that unselected points fade into the background as expeccted

3) Double click to clear selection

4) Perform lasso selection again:
screen shot 2018-04-27 at 12 46 19 pm

Note that now there is no contrast between selected and unselected points

Comments

  • This doesn't seem to happen with 10k points
  • plotly.js version: 1.36.1
  • Chrome version: Version 65.0.3325.181 (Official Build) (64-bit)
bug

All 6 comments

@dy any ideas?

Oh, unfortunately that is regl issue, demanding to insert regl._refresh() here and there. I tried to nail it couple of times, to no success, since it requires some complex shader setup. Btw inserting regl._refresh affects drawing performance ~6 times for a thousand of rendering passes, which might be a case for regl-splom or multitrace plots.

@dy did you file a bug report to regl about this?

FWIW I'm not noticing this problem in 1.35.2 (The unselected points keep fading on repeated selections). That version was regl-based as well wasn't it?

I'm also noticing another difference between 1.35.2 and 1.36.1. Take a look at the difference in the initial non-zoomed, non-selected views.

1.35.2
screen shot 2018-04-30 at 3 14 23 pm

1.36.1
screen shot 2018-04-30 at 3 14 01 pm

In 1.36.1 the points look less dense. Is there a chance that not all of the points are being rendered in 1.36.1?

@etpinard that is really complex shader setup, I am in the process of nailing/issuing the bug.

In 1.36.1 the points look less dense. Is there a chance that not all of the points are being rendered in 1.36.1?

Is this https://github.com/plotly/plotly.js/issues/2334 again?

It's pretty bad anyway - check out what happens when you make the x values monotonic https://codepen.io/alexcjohnson/pen/GdWEqp

screen shot 2018-04-30 at 3 41 50 pm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maxwell8888 picture maxwell8888  路  3Comments

n-riesco picture n-riesco  路  3Comments

WG- picture WG-  路  3Comments

chriddyp picture chriddyp  路  3Comments

HunterMcGushion picture HunterMcGushion  路  3Comments