matplotlib / matplotlib/ipympl

PolygonSelector does not work in JupyterLab

Đang mở
#476 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Jupyter Notebook
Star
1.7k
Fork
234
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Describe the issue

The PolygonSelector example from the [mpl docs](https://matplotlib.org/stable/gallery/widgets/polygon_selector_demo.html) works very well in the default Qt backend.
![Screenshot at 2022-07-05 17-01-56](https://user-images.githubusercontent.com/39047984/177358796-a0c848f6-27d9-48e0-935c-0e6c9427da30.png)

However, using `ipympl` in a notebook, nothing happens. No gray point follows the mouse cursor, nothing is drawn when I click. Just the initial figure with the blue dots.
I checked the jupyterlab log console on debug level but there are no errors.

I was wondering if it was related to https://github.com/matplotlib/matplotlib/issues/15852, and tried adding `useblit=False` where the `PolygonSelector` is created, but this did not help.

## Versions

- jupyterlab = 3.4.2
- ipympl = 0.9.1
- matplotlib = 3.5.2

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với ví dụ PolygonSelector được liên kết trong tài liệu Matplotlib và tái tạo ví dụ đó bằng ipympl trong JupyterLab 3.4.2. So sánh Qt backend đang hoạt động với hành vi trong notebook, bao gồm cả việc thử sử dụng thiết lập useblit=False. Hoàn thành khi điểm con trỏ màu xám và thao tác vẽ đa giác phản hồi với tương tác chuột trong notebook.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
jupyter, jupyter-notebook
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.