code: def main():
      builder = Gtk.Builder()
      builder.add_objects_from_file(
          str(Path(__file__).parent / "mpl_with_glade3.glade"),
          ("window1", ""),
      )
      builder.connect_signals(Window1Signals())
      window = builder.get_object("window1")
      sw = builder.get_object("scrolledwindow1")
  
      # Start of Matplotlib specific code
      figure = Figure(figsize=(8, 6), dpi=71)
      axis = figure.add_subplot()
      t = np.arange(0.0, 3.0, 0.01)
      s = np.sin(2 * np.pi * t)
      axis.plot(t, s)
  
      axis.set_xlabel("time [s]")
      axis.set_ylabel("voltage [V]")
  
      canvas = FigureCanvas(figure)  # a Gtk.DrawingArea
      canvas.set_size_request(800, 600)
      sw.add(canvas)
      # End of Matplotlib specific code
  
      window.show_all()
      Gtk.main()
  
file_path: matplotlib/galleries/examples/user_interfaces/mpl_with_glade3_sgskip.py
imports: from pathlib import Path
  import gi
  from gi.repository import Gtk
  import numpy
  from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg
  from matplotlib.figure import Figure
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types