4

Does anyone have any idea how to fix this? On my desktop screen this is how the plot looks like:

Plot on desktop screen

However once I drag the graph to my monitor the points become misaligned and the axis is not complete. Plot on monitor screen

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
binverted
  • 73
  • 3

1 Answers1

1

I recently had the same issue and for me it was related to using screens with a resolution > 1920x1080. In my case (using Windows) the problem could be solved with:

import platform
import ctypes
if platform.system()=='Windows' and int(platform.release()) >= 8:   
    ctypes.windll.shcore.SetProcessDpiAwareness(True)

other possible fixes are QApplication.setAttribute(Qt.AA_EnableHighDpiScaling) and os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1".

There are even more possible solutions, as for example here.

fischmalte
  • 81
  • 7