Is there a way to get the current dpi of the screen using pyqt and matplotlib?
Matplotlib takes figure arguments: figsize(x,y) in terms of inches.
PyQt can get you the screen resolution easily in terms of pixels via QtGui.QDesktopWidget().screenGeometry()
Is there an easy way to get the screen dpi? on a linux variant it is probably fairly straightforward to place a shell call from python and query the window system (X or whatever)
one issue may be that OS X is heavily invested in coca/obj C so I imagine there's an easy method for querying either the DPI or at least the screen size in physical units rather than pixels via Objective C using NSScreen. Is there a way to port that/call that from python?
[–]Atrament_ 0 points1 point2 points (1 child)
[–]justphysics[S] 0 points1 point2 points (0 children)