help-octave
[Top][All Lists]
Advanced

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

problem with 'replot'


From: John W. Eaton
Subject: problem with 'replot'
Date: Fri, 29 Jan 1999 04:40:20 -0600 (CST)

On 29-Jan-1999, Thomas Walter <address@hidden> wrote:

| I'm new to 'octave' but I found a problem with 'gnuplot' and 'octave'
| version 2.0.13 (installed as binary package) and V 2.0.13.96 (self
| compiled with 'egcs-1.1b on RH-5.1 Linux)
| 
| Being at the octave prompt
|       oct> replot ("sin(x)")
| works fine but
|       oct> replot ("sin(x) w l")
| gives the error message
|       line 0: undefined variable: t
| 
| This is because of a wrong syntax sent to 'gnuplot'.
| Octave sends
|       pl sin (x) w l t "bla"
| and the correct syntax (from the gnuplot-3.7 manual) is
|       pl sin (x) t "bla" w l
| 
| This is:  the title has to come first and then line styles.

I don't think this is really worth trying to fix.  You can type

  replot "sin(x)" w l

and avoid the problem.

In 2.0.14, there is a new function called `graw' that allows you to
send raw commands to gnuplot, if that is what you want to do.  Then
you can say

  graw ("replot sin(x) w l\n")

and Octave won't try to be smart about assigning a label in the key
for your plot.

BTW, please report bugs to address@hidden

Thanks,

jwe



reply via email to

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