Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Set the position of the window in vis.visualization #46

#1

Hi folks,

In function vis.visualization, how can I set the position of the whole window (instead of the view/plot)? Thanks.

  • replies 1
  • views 1.3K
  • likes 0
#2

You can resize the window by setting the view width and height (attributes w and h in the object returned from vis.getViewport()). To set the position, you will need to use Qt or GLUT calls on the object accessed by vis.nativeWindow().window. See for example https://pythonprogramminglanguage.com/pyqt5-center-window/ for more information about how to set the window position in Qt.