Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: pick events do not forward mouseevent-key on Linux #24199

Closed
@raphaelquast

Description

@raphaelquast

Bug summary

Somehow onCentOS Linux 7 keyboard-buttons are not forwarded withpick_events... onWindows 10 everything works as expected.

Code for reproduction

importmatplotlib.pyplotaspltf,ax=plt.subplots()s=ax.scatter([1,2,3,4], [1,2,3,4],s=1000)s.set_picker(True)defdoit(event):ifevent.name=="button_press_event":print(event.name,event.key)ifevent.name=="pick_event":print(event.name,event.mouseevent.key)f.canvas.mpl_connect("button_press_event",doit)f.canvas.mpl_connect("pick_event",doit)

Actual outcome

When clicking on one of the datapoints while pressing the buttons12 and3 the following happens:

on Windows I get:

pick_event1button_press_event1pick_event2button_press_event2pick_event3button_press_event3

on CentOS Linux I get:

pick_eventNonebutton_press_event1pick_eventNonebutton_press_event2pick_eventNonebutton_press_event3

Expected outcome

The same output for both OS

Operating system

Windows / Linux CentOS7

Matplotlib Version

3.6.1

Matplotlib Backend

Qt5Agg

Python version

3.9.13

Installation

conda

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp