Re: How to write text in a Picture?




Paolo wrote:
> Hi, my question is how to write text, variable values, in a picture at a
> given coordinate.

You can use the command
text( x, y, 'text' ), where 'text' is the text you want to have. It can
also be a variable value, by using num2str(variable value).
The x and y have to be in terms of the coordinate system for the axes.*
Try typing 'help text' or 'doc text' at the command prompt.

--
john


* This may sometimes be convenient, but it would be nice if one could
just specify a percentage of the x and y axes, so the text would stay
in the same place if different date were plotted. You probably can do
this if you figure out how.

.



Relevant Pages

  • Re: GP 4.3: Problem with splot and axis scaling
    ... the set size ratio -1 was intended to force a quadratic plotting area; ... The command `set view equal_axes` forces the unit length of the ... x and y axes to be on the same scale. ...
    (comp.graphics.apps.gnuplot)
  • Re: Matlab 6.5:HOW to plot an ouput for a function on to the AXES(layout created through GUIDE) on t
    ... You must always make the axes on where you want to plot the "current ... The axes on the figure created using GUIDE is by default "only" ... e.g from the command line. ...
    (comp.soft-sys.matlab)
  • Re: The problem of two or multi axes
    ... In order to set the current axes, ... > fill command) in the process. ... in the create function of axes1 I load and display image. ... if I can specify which axes to be the current axes? ...
    (comp.soft-sys.matlab)
  • Re: How to draw multiple images in same axes at gui
    ... before using the imshow command use the command axes ... The point is i just hv one axes and many images to display one after the other. ...
    (comp.soft-sys.matlab)
  • Re: Earth texture mapping
    ... i do the texture mapping with the ... Y axes are rotated by 90 degrees clockwise with respect to ... with the YDir and XDir command, but it has been useless because ... northern hemisphere the southern one, ...
    (comp.soft-sys.matlab)