| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
So this basically undoes #8144, but that's supposedly fixing a bug. Is there some difference in Qt5 versions being used or something? |
Sorry, something went wrong.
|
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 |
Sorry, something went wrong.
|
What about qt? |
Sorry, something went wrong.
(test) efiring@manini2:~/currents/programs/pycurrents/scripts$ conda list | grep -i qt ipython-qtconsole 4.0.1 py35_0 pyqt 5.6.0 py35_0 qt 5.6.0 0 qtawesome 0.3.3 py35_0 conda-forge qtconsole 4.2.1 py35_1 qtpy 1.1.2 py35_0 |
Sorry, something went wrong.
|
@QuLogic I think 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. |
Sorry, something went wrong.
|
attn @astrofrog Can you test this out with both qt5 and osx? |
Sorry, something went wrong.
|
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 exactly which pairs of them need to be pulled out. |
Sorry, something went wrong.
|
And I am working on a "high-dpi" style sheet. |
Sorry, something went wrong.
|
@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 |
Sorry, something went wrong.
|
I deleted a comment about this hanging my terminal; it seems to have been caused by an ipython version update. |
Sorry, something went wrong.
|
@tacaswell, your suggestion of adding back the block that was deleted at the end of cedaaae works fine; I think that with that change, this is ready for 2.0.1. |
Sorry, something went wrong.
Do not over-size the icons
Set the figure size back to the current value to push the dpi (and hence rendered size) change through.
If `_original_dpi` is tacked on to the figure instance by a backend canvas use that for 'figure' dpi instead of the dpi scaled for the screen.
|
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. |
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
attn @efiring
This is the last thing for 2.0.1 I believe.