Comptability with mpl cursors

Open
#537 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
jupyter-notebook, python

Research direction

Reproduce the 3D bar plot with ipympl 0.9.3 in the reported JupyterLab setup and observe the existing x/y/z cursor output. Compare that behavior with mplcursors and clarify how bar-specific custom information should be supplied. Done means an agreed compatibility path or a clearly scoped limitation, supported by a reproducible example.

Written by the indexing model from the issue text.

Description

Describe the issue

I use 3d bars plot.
When I use the plugin I see x=,y=,z=xxxx which indicates the position of the mouse.
I want to see custom information depending on the bar I am on .
mpl cursors doesn't seem to work, and couldn't find other reference to such option.

Versions

 3.10.0rc2 (tags/v3.10.0rc2:839d789, Sep  7 2021, 18:51:45) [MSC v.1929 64 bit (AMD64)]
ipympl version: 0.9.3
Selected Jupyter core packages...
IPython          : 7.27.0
ipykernel        : 6.25.2
ipywidgets       : 8.0.7
jupyter_client   : 8.3.1
jupyter_core     : 5.3.0
jupyter_server   : 2.7.3
jupyterlab       : 4.0.5
nbclient         : 0.7.4
nbconvert        : 7.8.0
nbformat         : 5.7.3
notebook         : 6.4.2
qtconsole        : not installed
traitlets        : 5.9.0
Known nbextensions:
  config dir: C:\Users\ekarni\AppData\Local\Programs\Python\Python310\etc\jupyter\nbconfig
    notebook section
      bqplot/extension enabled
      - Validating: ok
      ipydatagrid/extension enabled
      - Validating: ok
      jupyter-matplotlib/extension enabled
      - Validating: ok
      pydeck/extension enabled
      - Validating: problems found:
        - require?  X pydeck/extension
      voila/extension enabled
      - Validating: problems found:
        - require?  X voila/extension
      jupyter-js-widgets/extension enabled
      - Validating: ok
JupyterLab v4.0.5
C:\Users\ekarni\AppData\Local\Programs\Python\Python310\share\jupyter\labextensions
        bqplot v0.5.41 enabled  X (python, bqplot)
        ipydatagrid v1.1.16 enabled  X
        jupyter-matplotlib v0.11.3 enabled ok
        jupyterlab_pygments v0.2.2 enabled  X (python, jupyterlab_pygments)
        @jupyter-widgets/jupyterlab-manager v5.0.8 enabled ok (python, jupyterlab_widgets)
        @voila-dashboards/jupyterlab-preview v2.3.4 enabled ok (python, voila)


   The following extensions are outdated:
        bqplot
        ipydatagrid
        jupyterlab_pygments
Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from matplotlib/ipympl

All issues in matplotlib/ipympl

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.