automated labelling in the plot

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.

Thanks,

Pau

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

···

On Fri, Jul 10, 2009 at 5:46 AM, Pau<vim.unix@...982...> 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.