You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can move the app to 2k monitor and all subplots become responsive, but as I move it to the 4k monitor all except one works. I also ran the code on a MacBook Air and had the same issue as it had a high resolution screen.
import sys
import os
from qtpy import QtWidgets
import pyvista as pv
from pyvistaqt import QtInteractor, MainWindow
class MyMainWindow(MainWindow):
def __init__(self, parent=None, show=True):
QtWidgets.QMainWindow.__init__(self, parent)
# create the frame
self.frame = QtWidgets.QFrame()
vlayout = QtWidgets.QVBoxLayout()
# add the pyvista interactor object
self.plotter = QtInteractor(self.frame, shape=(2, 2))
vlayout.addWidget(self.plotter.interactor)
self.signal_close.connect(self.plotter.close)
self.frame.setLayout(vlayout)
self.setCentralWidget(self.frame)
self.plotter.subplot(0, 0)
self.plotter.add_mesh(pv.Sphere())
self.plotter.subplot(0, 1)
self.plotter.add_mesh(pv.Cylinder())
self.plotter.subplot(1, 0)
self.plotter.add_mesh(pv.Cube())
self.plotter.subplot(1, 1)
self.plotter.add_mesh(pv.Cone())
if show:
self.show()
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
window = MyMainWindow()
sys.exit(app.exec_())
The text was updated successfully, but these errors were encountered:
I can move the app to 2k monitor and all subplots become responsive, but as I move it to the 4k monitor all except one works. I also ran the code on a MacBook Air and had the same issue as it had a high resolution screen.
The text was updated successfully, but these errors were encountered: