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

Qt5: Fix event positions on HiDPI screens.#8144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
NelleV merged 1 commit intomatplotlib:v2.0.xfromQuLogic:qt5-hidpi-fixes
Mar 15, 2017

Conversation

QuLogic
Copy link
Member

The event location is in logical pixels, which is the way it should stay for the rest of the stack.

Fixes#8052.

@QuLogicQuLogic added this to the2.0.1 (next bug fix release) milestoneFeb 24, 2017
Copy link
Contributor

@anntzeranntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

  1. Is it documented somewhere thatfig.bbox.height is in physical pixels, not device-independent pixels? Should we try to change that?
  2. Either way, it'd be nice to add a docstring to the method to document this subtlety.

@QuLogic
Copy link
MemberAuthor

figure.bbox.height comes fromfigsize * dpi and for hidpi,dpi is scaled up by whatever the ratio is so that the figure is rendered at high resolution.

The event location is in logical pixels, which is the way it should stayfor the rest of the stack.
@QuLogic
Copy link
MemberAuthor

Added a comment about it in the docstring.

@anntzeranntzer changed the titleQt5: Fix event positions on HiDPI screens.[MRG+1] Qt5: Fix event positions on HiDPI screens.Feb 26, 2017
@NelleVNelleV merged commit415d39a intomatplotlib:v2.0.xMar 15, 2017
@QuLogicQuLogic deleted the qt5-hidpi-fixes branchMarch 15, 2017 19:23
@QuLogicQuLogic changed the title[MRG+1] Qt5: Fix event positions on HiDPI screens.Qt5: Fix event positions on HiDPI screens.Mar 15, 2017
@QuLogicQuLogic mentioned this pull requestApr 7, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer approved these changes

@tacaswelltacaswellAwaiting requested review from tacaswell

@astrofrogastrofrogAwaiting requested review from astrofrog

Assignees
No one assigned
Labels
Projects
None yet
Milestone
v2.0.1
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@anntzer@NelleV

[8]ページ先頭

©2009-2025 Movatter.jp