On Tue, Sep 28, 2010 at 11:29 AM, John Hunter <jdh2...@gmail.com> wrote: > On Tue, Sep 28, 2010 at 10:04 AM, Ruggero <giurr...@gmail.com> wrote: >> As in the title: usually axis label on the x axis is plottet in the >> middle of the axis. How to move it on the right? (and on the top for y >> axis) > > You cannot coerce the xlabel to the top because it's y position is > determined at drawtime to avoid overlapping the tick labels. But you > can place an arbitrary piece of text up there > > text(1.0, 1.02, 'testing', horizontalalignment='right', > verticalalignment='bottom', fontsize=14)
Oops, forgot to set the transform. That should read text(1.0, 1.02, 'testing', horizontalalignment='right', verticalalignment='bottom', fontsize=14, transform=ax.transAxes) For more on transforms and the various coordinate systems, see http://matplotlib.sourceforge.net/users/transforms_tutorial.html JDH ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users