original_docstring: Renders the given state to an rgba image encoded in raw format
docstring: Renders the given state to an rgba image encoded in raw format
docstring_tokens: Renders the given state to an rgba image encoded in raw format
code: def render(self, act_state: state.ProjectedState) -> bytes:
          """Renders the given state to an rgba image encoded in raw format"""
          fig = self.render_mpl(act_state)
          fig.set_size_inches(*self.frame_size_in)
          hndl = io.BytesIO()
          fig.savefig(hndl, format='rgba', dpi=self.dpi)
          rawimg = hndl.getvalue()
          plt.close(fig)
          return rawimg
code_tokens: def render ( self , act_state : state . ProjectedState ) -> bytes : fig = self . render_mpl ( act_state ) fig . set_size_inches ( * self . frame_size_in ) hndl = io . BytesIO ( ) fig . savefig ( hndl , format = 'rgba' , dpi = self . dpi ) rawimg = hndl . getvalue ( ) plt . close ( fig ) return rawimg
short_docstring: Renders the given state to an rgba image encoded in raw format
short_docstring_tokens: Renders the given state to an rgba image encoded in raw format
comment: """Renders the given state to an rgba image encoded in raw format"""