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. Alan
________________________________________ De : ben.v.r...@gmail.com [ben.v.r...@gmail.com] de la part de Benjamin Root [ben.r...@ou.edu] Date d'envoi : jeudi 11 août 2011 19:54 À : WALTER Alain Cc : matplotlib-users@lists.sourceforge.net 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.wal...@thalesgroup.com<mailto:alain.wal...@thalesgroup.com>> wrote: Hi Ben, I don't want to display rotate text ! I just need to display a simple text to my figure : ax.text(onevolume['long'][i],onevolume['lat'][i],onevolume['upper'][i],onevolume['point'][i],color=linecolor) 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 ! Thank you 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. Ben Root ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users