From help-octave-request at bevo dot che dot wisc dot edu Thu Dec 24 07:20:33 1998 Subject: Re: Subplot command From: Joerg Raedler To: help-octave at bevo dot che dot wisc dot edu Date: Thu, 24 Dec 1998 14:07:19 +0100 On Tue, 22 Dez 1998 William H. Lipscomb wrote: >(1) Is it possible in Octave to insert text into a plot? In Matlab this >can be done with the text command: text (xcoord, ycoord, 'TEXT'). But >this command produces an error message in Octave. You can use the gnuplot "set label" command. In my first days with octave I wrote a function to emulate the matlab "text" command. It's old, ugly, but for me it worked... Maybe I should implement some error checking and write some lines of help ... ----8<---- function text(x, y, txt) textline = ["gset label \"", txt, "\" at ", num2str(x), ",", num2str(y)]; eval(textline); ----8<---- Merry Xmas Joerg -- +++ jora at jops dot in-berlin dot de +++ jorarage@linux.zrz.tu-berlin.de +++