code: def on_draw_event(self, widget, ctx):
      scale = self.device_pixel_ratio
      allocation = self.get_allocation()
  
      Gtk.render_background(
          self.get_style_context(),
          ctx,
          allocation.x,
          allocation.y,
          allocation.width,
          allocation.height,
      )
  
      buf = cbook._unmultiplied_rgba8888_to_premultiplied_argb32(
          np.asarray(self.get_renderer().buffer_rgba())
      )
      height, width, _ = buf.shape
      image = cairo.ImageSurface.create_for_data(
          buf.ravel().data, cairo.FORMAT_ARGB32, width, height
      )
      image.set_device_scale(scale, scale)
      ctx.set_source_surface(image, 0, 0)
      ctx.paint()
  
      return False
  
file_path: matplotlib/lib/matplotlib/backends/backend_gtk4agg.py
imports: import numpy
  from ..None import cbook
  from .None import backend_agg, backend_gtk4
  from .backend_gtk4 import Gtk, _BackendGTK4
  import cairo
label_desc: Use image node_id 1 for calling the FigureCanvasGTK4Agg obj's underlying member method code with example usage: obj.on_draw_event(widget, ctx) and returns: False