I have been struggling with an axes display issue since upgrading PyQt4 to 
PyQt5 on my Windows 10 machine. Essentially, when I make a simple plot 
using pyqtgraph, the x axis does not stretch across the bottom of the 
window, and the y axis is not joined to the x axis in the lower left 
corner. Furthermore, the trace is not accurately represented by the axis 
labels at large x values or small y values. This issue only exists when the 
plot is displayed on my external monitor - the plot appears to look just 
fine in my laptop display.

The plots are displayed below (left - external display, right - laptop 
display), and were generated with:

import pyqtgraph as pg
pg.plot([0,1,2,3,4,5,6,7,8,9],[1,2,4,5,7,8,10,11,13,14]) 

pg.QtGui.QApplication.exec_()

 

<https://lh3.googleusercontent.com/-bj_IEfiEFCo/WW6HZAXvxSI/AAAAAAAAAAc/_C4nphyD0u4y65gZt0_1jJlJQ_0xQjeCwCLcBGAs/s1600/pyqtgraph_external.PNG>
 
<https://lh3.googleusercontent.com/-Pb7TL7CWN-g/WW6Hehz9IUI/AAAAAAAAAAg/4OPG0HCR6Ag-1EU8QTbyndbQEnNZlg3MwCLcBGAs/s1600/pyqtgraph_laptop.PNG>



I've also posted the problem to stackexchange here 
<https://stackoverflow.com/questions/45108069/pyqtgraph-axes-not-displaying-correctly>.
 
I am using python version 3.6.1, pyqtgraph version 0.10.0, PyQt5 version 
5.9, pyqt version 5.6.0, and qt verstion 5.6.2. I suspect that this may be 
an issue related to the Qt DPI scaling added to more recent versions of Qt. 
Any help would definitely be appreciated. Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/52ce59d9-77d8-4b5b-b0e3-fbe82abf22c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to