2 problems with Raspberry OS

Hello,

  1. the app does not open the figure when started from the console after starting the GUI
  2. the changes in the matplotlib part of the UI pile up when snoozing, and after some hours the system freezes

many thanks

app = wx.App(redirect=False)

frame = MainFrame()

panel = ImagePanel(frame, controller,verlgr, image_size=(240,240))

# controll.drawLines()

print('vor frame.show')

frame.Show()

app.MainLoop()

and

 plt.ion()
 self.fig,self.ax2=plt.subplots(1,1)
 self.fig.show()

    plt.draw()

version 4.0.4 gtk 3 wxwidgets 3.0.4