class_docstr: The canvas the figure renders into.  Calls the draw and print fig
  methods, creates the renderers, etc...
  
  Attributes
  ----------
  figure : `matplotlib.figure.Figure`
      A high-level Figure instance
docstr: Get the image as an RGB byte string
  
  `draw` must be called at least once before this function will work and
  to update the renderer for any subsequent changes to the Figure.
  
  Returns
  -------
  bytes
docstr_tok: ["Get","the","image","as","an","RGB","byte","string","`","draw","`","must","be","called","at","least","once","before","this","function","will","work","and","to","update","the","renderer","for","any","subsequent","changes","to","the","Figure",".","Returns","--","--","--","-","bytes"]
code: def tostring_rgb(self):
      """Get the image as an RGB byte string
  
      `draw` must be called at least once before this function will work and
      to update the renderer for any subsequent changes to the Figure.
  
      Returns
      -------
      bytes
      """
      return self.renderer.tostring_rgb()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import numpy
  from collections import OrderedDict
  from math import radians, cos, sin
  from matplotlib import cbook, rcParams, __version__
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, RendererBase, cursors
  from matplotlib.cbook import maxdict
  from matplotlib.figure import Figure
  from matplotlib.font_manager import findfont, get_font
  from matplotlib.ft2font import LOAD_FORCE_AUTOHINT, LOAD_NO_HINTING, LOAD_DEFAULT, LOAD_NO_AUTOHINT
  from matplotlib.mathtext import MathTextParser
  from matplotlib.path import Path
  from matplotlib.transforms import Bbox, BboxBase
  from matplotlib import colors
  from matplotlib.backends._backend_agg import RendererAgg
  from matplotlib import _png
label_desc: Use image node_id 5 for calling the FigureCanvasAgg obj's underlying member method code with example usage: obj.tostring_rgb() and returns: self