Plot print problem

John B. Thoo jthoo at yccd.edu
Mon May 4 14:41:29 CDT 2009


On May 4, 2009, at 12:02 PM, Jonathan Webster wrote:

> Hello,
>
> I now have Octave, version 3.0.1 running on a CentOS box upgraded  
> to CentOS 5.3.
> 2.6.18-128.1.1.el5xen #1 SMP Wed Mar 25 18:54:34 EDT 2009 x86_64
>
> At startup octave acknowledges
> Octave was configured for "x86_64-redhat-linux-gnu".
>
> If I start gnuplot from the bash prompt it proclaims
>
> G N U P L O T
>         Version 4.0 patchlevel 0
>         last modified Thu Apr 15 14:44:22 CEST 2004
>         System: Linux 2.6.18-128.1.1.el5xen
>
> In octave plotting makes a new plot window and a nice plot.   but  
> complains.
>
> octave:2> clear
> octave:3> xx =  0:.1:10;
> octave:4> yy = xx .^ 3;
> octave:5> plot(xx,yy)
>          line 0: undefined variable: in
>
>          line 0: undefined variable: in
>
>          line 0: undefined variable: in
>
>          line 0: undefined variable: lw
>
> octave:6> print -dps foo4.ps
> warning: isstr is obsolete and will be removed from a future version
> of Octave, please use ischar instead
> warning: __gnuplot_raw__: this function is obsolete and will be
> removed from a future version of Octave
> warning: __gnuplot_replot__: this function is obsolete and will be
> removed from a future version of Octave
> octave:7>
>
> The file is created but there is nothing in it
>
> $ ls -l foo*
> -rw-rw-r-- 1 jcw jcw 0 May  4 14:57 foo4.ps
>
> TIA,
>
> Jonathan

I'm sorry I don't have an answer for you, but, to provide another  
data point, I managed your commands without Octave complaining.

octave-3.0.5:12> xx = 0:.1:10;
octave-3.0.5:13> yy = xx .^ 3;
octave-3.0.5:14> plot (xx, yy)
octave-3.0.5:15> print -dps foo4.ps
octave-3.0.5:16>

I'm using Octave 3.0.5 and gnuplot 4.2 patchlevel 5 on Mac OS X 10.4.11.

---John.


More information about the Help-octave mailing list