You're right I'm not clear. You thought I' am using text() from matplotlib but If I'm looking to the text() invocation from the module Axes3D:
Axes3D.text(x, y, z, s, zdir=None, **kwargs)¶
Add text to the plot. kwargs will be passed on to Axes.text, except for the zdir keyword, which sets the direction to be used as the z direction.
In my case:
ax. text(23.1, 14.0, 340.0, 'ABETI', color='red')
Anyway, now I've replaced GTK backend by GTKagg backend, and Everything seems better.
De : ben.v.root@... [ben.v.root@...] de la part de Benjamin Root [ben.root@...]
Date d'envoi : jeudi 11 août 2011 19:54
À : WALTER Alain
Cc : matplotlib-users@...
Objet : Re: RE : [Matplotlib-users] unable to draw text at angles other than 0 or 90
On Thu, Aug 11, 2011 at 11:21 AM, WALTER Alain <alain.walter@...>> wrote:
I don't want to display rotate text ! I just need to display a simple text to my figure :
In addition, I do not understand your remark about GDK, If I remember, I need to use the following modules because FigureCanvas and NavigationToolbar are required.
from matplotlib.backends.backend_gtk import FigureCanvasGTK as FigureCanvas
from matplotlib.backends.backend_gtk import NavigationToolbar2GTK as NavigationToolbar
Anyway I cannot reproduce the warning, it is a little bit strange !
Disregard what I said earlier. I didn't see that you were not trying to rotate your text in the first place.
What is an example value for "onevolume['point'][i]"? The function signature for ax.text() is that the first 2 positional arguments are the coordinates, the third is the string to display (I would presume that "onevolume['upper'][i]" has something to do with the text you are displaying). However, the "onevolume['point'][i]" is in the position for the fontdict parameter of the function call. This dictionary overrides the default text properties, which I believe include properties like the rotation angle.