code: def on_close(self, event):
      """Hide instead of close"""
      if isinstance(event, wx.CloseEvent):
          event.Veto()
      self.Hide()
  
imports: import wx
  from ..figure import Figure
label_desc: Use image node_id 1 for calling the WorkspaceViewFigure obj's underlying member method code with example usage: obj.on_close(event) without return types