From: N. V. <mit...@we...> - 2005-09-12 20:58:53
|
Hello John, > >There is nothing wrong with instantiating Text instances yourself and >adding them to the figure or axes manually as you did, but both the >Axes and Figure have helper methods "text" which define a default >transformation that can be overridden > >So > > t = Text(x=x, y=y, text=text) > t.set_transform(axes.transAxes) > ax.texts.append(t) > >is equivalent to > > ax.text(x, y, text, transform=ax.transAxes) > > > ax.text was my starting point to understand the usage of Text(). For my application I need a very detailed control of the objects I create, this is why I prefer the manual approach. > >If you have time and inclination to write a transformations tutorial >for the wiki, that would be great. > > > Not tonight, but I will! Thanks so much for your answer, Niklas. |