axes not displaying correctly on external displays

22 views
Skip to first unread message

kyle.p...@gmail.com

unread,
Jul 18, 2017, 6:14:58 PM7/18/17
to pyqtgraph
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_()
 



I've also posted the problem to stackexchange here. 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.
Reply all
Reply to author
Forward
0 new messages