parameters: (self,point,text,size=12,color=None)
docstring: Renders text at the given point (may be 2d or 3d).  Frontend should call this to draw text
          in either the display or display_screen method.
  
          Args:
              point (list of floats): either a 2d or 3d point at which to draw the text
              text (str): the text to draw
              size (int, optional): if given, it renders a font in the given size. 
              color (list of 3 floats or list of 4 floats) if given, then an RGB or RGBA color value.
docstring_summary: Renders text at the given point (may be 2d or 3d).  Frontend should call this to draw text
          in either the display or display_screen method.
docstring_tokens: Renders text at the given point ( may be 2d or 3d ) . Frontend should call this to draw text in either the display or display_screen method .
function: def draw_text(self,point,text,size=12,color=None):
          """Renders text at the given point (may be 2d or 3d).  Frontend should call this to draw text
          in either the display or display_screen method.
  
          Args:
              point (list of floats): either a 2d or 3d point at which to draw the text
              text (str): the text to draw
              size (int, optional): if given, it renders a font in the given size. 
              color (list of 3 floats or list of 4 floats) if given, then an RGB or RGBA color value.
  
          """
          if color:
              if len(color)==3:
                  glColor3f(*color)
              else:
                  glColor4f(*color)
  
          font = QtGui.QFont()
          font.setPixelSize(size)
          if len(point) == 2:
              self.renderText(point[0],point[1],0,text,font)
          else:
              self.renderText(point[0],point[1],point[2],text,font)
function_tokens: def draw_text ( self , point , text , size = 12 , color = None ) : if color : if len ( color ) == 3 : glColor3f ( * color ) else : glColor4f ( * color ) font = QtGui . QFont ( ) font . setPixelSize ( size ) if len ( point ) == 2 : self . renderText ( point [ 0 ] , point [ 1 ] , 0 , text , font ) else : self . renderText ( point [ 0 ] , point [ 1 ] , point [ 2 ] , text , font )