glue-jupyter
glue-jupyter copied to clipboard
Enable more than 10 linked plots
Hi,
Glue-Jupyter has brilliant features and is very powerful. Great UI too. I love it.
Questions:
- How do I enable more than 10 linked plots? The default seems to limit it to 10
- 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
- How do I have just 1 toolbar but use it to make selections on any of the faceted plots?
- 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.
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
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.
Were there any follow-up issues opened on this?
This might be the same issue: https://github.com/bqplot/bqplot/issues/856