equal
deleted
inserted
replaced
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 |