On Fri, Jul 10, 2009 at 5:46 AM, Pau<vim.u...@googlemail.com> wrote: > Hello, > > are there some relative/absolute limits in the plotting area? > > I would like to set some text (labels) in the plot automatically, so > that I do not need to recalculate everytime where they should go. > > I mean some kind of absolute X0, Y0, X1, Y1 , so that I know where to > place the labels in text in the plot area without having to look at > the particular values of the particular plot I am dealing with, in a > series of very similar plots.
Specify the coordinates using the axes transform -- (0,0) is bottom left and (1,1) is top right ax = fig.add_subplot(111) ax.text(0.1, 0.9, 'this is a test', transform=ax.transAxes) See also the "annotate" command, which takes a variety of different coordinate systems: data, axes, figure.. http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.annotate http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html JDH ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users