Skip to content

Commit

Permalink
BF-Plot: Default plot-backend QtAgg #1119
Browse files Browse the repository at this point in the history
  • Loading branch information
detlefarend committed Jan 3, 2025
1 parent 202d7b2 commit d3aa558
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/mlpro/bf/plot/backends/qtagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ def _figure_force_foreground_default(self, p_figure : Figure):
def _figure_get_geometry_default(self, p_figure : Figure) -> WindowGeometry:

# 1 Get size and position
window = p_figure.canvas.manager.window
geometry = window.geometry()
pos = geometry.topLeft()
size = geometry.size()
window = p_figure.canvas.manager.window
pos = window.pos()
size = window.size()

# 2 Get window state
state_qt = window.windowState()
Expand Down
5 changes: 3 additions & 2 deletions src/mlpro/bf/plot/basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,9 @@ def _init_figure(self, p_window_title: str = None):


# 5 Make window visible
# while not self._plot_window.winfo_viewable():
plt.pause(0.01)
# while not self._plot_window.winfo_viewable(): # Tk
# while not self._plot_window.isVisible(): # Qt
plt.pause(0.1)


# 6 Recover size and position of the window
Expand Down

0 comments on commit d3aa558

Please sign in to comment.