glue-jupyter icon indicating copy to clipboard operation
glue-jupyter copied to clipboard

Enable more than 10 linked plots

Open DougRzz opened this issue 5 years ago • 4 comments

Hi,

Glue-Jupyter has brilliant features and is very powerful. Great UI too. I love it.

Questions:

  1. How do I enable more than 10 linked plots? The default seems to limit it to 10
  2. Is there a way to easily facet the plots from the Glue-Jupyter API? See my attempt in the linked ipynb https://gist.github.com/DougRzz/5d6640722c9003a147b56a3463c870fc. (Also see screenshot below). The Seaborn documentation is a nice reference for facetting. https://seaborn.pydata.org/tutorial/axis_grids.html
  3. How do I have just 1 toolbar but use it to make selections on any of the faceted plots?
  4. I couldn't plot more than 100,000 points on a scatter plot without it automatically turning into a heatmap. Is there a way to control the max limit of points for this plot type?

BTW. For Windows users, do a conda install bottleneck before you install Glupyter. See installation commands at top of notebook. This might be worth documenting somewhere.

image

DougRzz avatar Nov 29 '19 14:11 DougRzz

How do I enable more than 10 linked plots? The default seems to limit it to 10

What issue are you running into when you create 11? (I was not able to reproduce it). Do you run into the issue if you make e.g. 11 2d scatter plots? Does the issue happen with any kind of viewer?

Is there a way to easily facet the plots from the Glue-Jupyter API? See my attempt in the linked ipynb https://gist.github.com/DougRzz/5d6640722c9003a147b56a3463c870fc. (Also see screenshot below).. The Seaborn documentation is a nice reference for facetting https://seaborn.pydata.org/tutorial/axis_grids.html

Not yet, but definitely something it would be nice to make easier here!

How do I have just 1 toolbar but use it to make selections on any of the faceted plots?

This isn't possible at the moment. I'll have a think about how we could allow this.

I couldn't plot more than 100,000 points on a scatter plot without it automatically turning into a heatmap. Is there a way to control the max limit of points for this plot type?

There's currently no easy way to change the threshold but you can simply turn off the density map for a layer in a plot using:

for layer in viewer.state.layers:
    layer.density_map = False

astrofrog avatar Dec 01 '19 21:12 astrofrog

Thanks for the responses. I will put 2 of the questions above into separate issues. I should have done that the first time round.

What issue are you running into when you create 11? (I was not able to reproduce it). Do you run into the issue if you make e.g. 11 2d scatter plots? Does the issue happen with any kind of viewer?

It does happen with any kind of Viewer. The issue is no always consistent but it is roughly 10 or 11 plots seems to be the limit in my Jupyter session (classic Jupyter). See screencast below.

glupyterLinkedPlotLimit3

DougRzz avatar Dec 02 '19 12:12 DougRzz

Were there any follow-up issues opened on this?

dhomeier avatar Feb 11 '22 15:02 dhomeier

This might be the same issue: https://github.com/bqplot/bqplot/issues/856

astrofrog avatar Feb 11 '22 15:02 astrofrog