[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gset label "hi" at 1992, pos
From: |
Paul Kienzle |
Subject: |
Re: gset label "hi" at 1992, pos |
Date: |
Fri, 5 Apr 2002 13:27:04 -0500 |
It is easier to just send the value of the variable on the gset
line than it is to send the variable. E.g.,
eval(sprintf('gset label "Avg" at 1992, %f', avg))
Or you could try text.m from octave-forge (http://octave.sf.net)
which does this for you.
Paul Kienzle
address@hidden
On Fri, Apr 05, 2002 at 07:45:46PM +0200, Alan Robert Clark wrote:
> Hi All
>
> I need to set some text at a particular position on a plot. I can do it
> Gnuplot, but NOT via the octave interface to gnuplot (gset).
>
> In octave,
>
> avg = sum(SeasonTotals)/length(SeasonTotals)
> gset label "Avg" at 1992 , avg
>
>
> causes gnuplot to (correctly) complain that avg is not defined (in the
> gnuplot workspace)
>
> eval etc also gets passed as is, and hence suffers the same way.
>
> Any way of passing a variable to the gnuplot workspace?
>
> Naturally, coding the above fragment in gnuplot proper works, but my
> data is in octave!
>
> Any help appreciated
> Alan
>
>
> --
> Alan Robert Clark, Pr Eng Computational Electromagnetics
> Dept Elec Eng Wits University
> Wits; Gauteng ``Bugs are later known as features''
> 2050 South Africa Ps 111:10; Ps 37/150
> Fax (+27 11)403-1929 address@hidden(Pref)
> Tel (+27 11)717-7223(24hr) <http://YingTongDiddleiPo.ee.wits.ac.za/>
> **Linux 2.2pl16(RH7.0)---the choice of a GNU generation.**
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------