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

Fix qt5 mouse#8440

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
efiring merged 6 commits intomatplotlib:v2.0.xfromtacaswell:fix_qt5_mouse
Apr 24, 2017
Merged

Fix qt5 mouse#8440

efiring merged 6 commits intomatplotlib:v2.0.xfromtacaswell:fix_qt5_mouse
Apr 24, 2017

Conversation

tacaswell
Copy link
Member

attn@efiring

This is the last thing for 2.0.1 I believe.

@tacaswelltacaswell added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelApr 7, 2017
@tacaswelltacaswell added this to the2.0.1 (next bug fix release) milestoneApr 7, 2017
@tacaswelltacaswell changed the base branch frommaster tov2.0.xApril 7, 2017 03:42
@tacaswelltacaswell reopened thisApr 7, 2017
@QuLogic
Copy link
Member

QuLogic commentedApr 7, 2017
edited
Loading

So this basically undoes#8144, but that's supposedly fixing a bug. Is there some difference in Qt5 versions being used or something?

@efiring
Copy link
Member

This is what I am using when seeing the bug:

(test) efiring@manini2:~/currents/programs/pycurrents/scripts$ conda list pyqt# packages in environment at /Users/efiring/anaconda/envs/test:#pyqt                      5.6.0                    py35_0

@QuLogic
Copy link
Member

What about qt?

@efiring
Copy link
Member

(test) efiring@manini2:~/currents/programs/pycurrents/scripts$ conda list | grep -i qtipython-qtconsole         4.0.1                    py35_0pyqt                      5.6.0                    py35_0qt                        5.6.0                         0qtawesome                 0.3.3                    py35_0    conda-forgeqtconsole                 4.2.1                    py35_1qtpy                      1.1.2                    py35_0

@tacaswell
Copy link
MemberAuthor

@QuLogic Ithink the bug was in@astrofrog 's example code. Internally we need to use the the pixels the renderer thinks it has not the pixels qt thinks it has.

@tacaswell
Copy link
MemberAuthor

attn@astrofrog Can you test this out with both qt5 and osx?

@tacaswell
Copy link
MemberAuthor

I still suspect that there are a bunch of un-needed scaling factors in there (as we scale up one place and down in the other), but it is not clear exactlywhich pairs of them need to be pulled out.

@tacaswell
Copy link
MemberAuthor

And I am working on a "high-dpi" style sheet.

@astrofrog
Copy link
Contributor

@tacaswell - can you mark me as a reviewer so that I don't lose track of this, and I'll review/test it on Monday

@tacaswelltacaswellforce-pushed thefix_qt5_mouse branch 2 times, most recently from9e34497 to5e869deCompareApril 10, 2017 20:06
@efiring
Copy link
Member

I deleted a comment about this hanging my terminal; it seems to have been caused by an ipython version update.

@efiring
Copy link
Member

@tacaswell, your suggestion of adding back the block that was deleted at the end ofcedaaae works fine; I think that with that change, this is ready for 2.0.1.

Do not over-size the icons
Set the figure size back to the current value to push the dpi (andhence rendered size) change through.
If `_original_dpi` is tacked on to the figure instance by a backendcanvas use that for 'figure' dpi instead of the dpi scaled for thescreen.
@astrofrog
Copy link
Contributor

Sorry I dropped the ball on reviewing this, I won't have time to check it in the short term but I don't want to delay 2.0.1, so this is fine by me.

@tacaswell
Copy link
MemberAuthor

@efiring Can you test this set of commits (I force-pushed).

There is one more thing I want to add (but might not be worth holding PR over) is to connect up the signal Qt provides when the dpi ratio changes.

@efiring
Copy link
Member

In my quick check, it looks good and works perfectly. I tested saving to png via the gui, manual resizing, get_size_inches and set_size_inches, cursor readout, and zoom to rect.

@efiringefiring merged commit7d9036c intomatplotlib:v2.0.xApr 24, 2017
@tacaswelltacaswell deleted the fix_qt5_mouse branchApril 24, 2017 19:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@astrofrogastrofrogAwaiting requested review from astrofrog

Assignees
No one assigned
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Milestone
v2.0.1
Development

Successfully merging this pull request may close these issues.

4 participants
@tacaswell@QuLogic@efiring@astrofrog

[8]ページ先頭

©2009-2025 Movatter.jp