controls/DebugVariablePanel/DebugVariableGraphicViewer.py
changeset 1750 acf02488f37f
parent 1746 45d6f5fba016
child 1757 0de89da92ee0
equal deleted inserted replaced
1749:d73b64672238 1750:acf02488f37f
   975         """
   975         """
   976         Return function for adding text in figure according to graph type
   976         Return function for adding text in figure according to graph type
   977         @return: Function adding text to figure
   977         @return: Function adding text to figure
   978         """
   978         """
   979         text_func = (self.Axes.text2D if self.Is3DCanvas() else self.Axes.text)
   979         text_func = (self.Axes.text2D if self.Is3DCanvas() else self.Axes.text)
       
   980 
   980         def AddText(*args, **kwargs):
   981         def AddText(*args, **kwargs):
   981             args = [0, 0, ""]
   982             args = [0, 0, ""]
   982             kwargs["transform"] = self.Axes.transAxes
   983             kwargs["transform"] = self.Axes.transAxes
   983             return text_func(*args, **kwargs)
   984             return text_func(*args, **kwargs)
   984         return AddText
   985         return AddText