heremaps / pptk

The Point Processing Toolkit (pptk) is a Python package for visualizing and processing 2-d/3-d point clouds.
https://heremaps.github.io/pptk
MIT License
610 stars 112 forks source link

Fix rendering on HiDPI #27

Open m-pilia opened 4 years ago

m-pilia commented 4 years ago

This is a possible fix to #26, by disabling automatic DPI scaling in the Qt application and let the system handle it.

This is admittedly not tested on Windows or Mac.

Testing on Arch Linux, KDE, monitor resolution 3200x1800, scale factor set to 2.0 through KScreen settings.

import numpy as np
import pptk
x = np.random.rand(100, 3)
v = pptk.viewer(x)

Screenshot_20191128_122105

Resolves #26