help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subplot command


From: Joerg Raedler
Subject: Re: Subplot command
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
 --
+++ address@hidden +++ address@hidden +++



reply via email to

[Prev in Thread] Current Thread [Next in Thread]