docstr: Copied verbatim from embedding_wx2.py
docstr_tok: ["Copied","verbatim","from","embedding_wx2.py"]
code: def add_toolbar(self):
      """Copied verbatim from embedding_wx2.py"""
      self.toolbar = NavigationToolbar2Wx(self.canvas)
      self.toolbar.Realize()
      # By adding toolbar in sizer, we are able to put it at the bottom
      # of the frame - so appearance is closer to GTK version.
      self.sizer.Add(self.toolbar, 0, wx.LEFT | wx.EXPAND)
      # update the axes menu on the toolbar
      self.toolbar.update()
  
file_path: matplotlib/galleries/examples/user_interfaces/mathtext_wx_sgskip.py
imports: from io import BytesIO
  import wx
  import numpy
  from matplotlib.backends.backend_wx import NavigationToolbar2Wx
  from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
  from matplotlib.figure import Figure
label_desc: Use image node_id 3 for calling the CanvasFrame obj's underlying member method code with example usage: obj.add_toolbar() without return types