[Pkg-octave-devel] Plotting with 3.6.2

Mike Miller mtmiller at ieee.org
Wed Jun 13 23:31:23 UTC 2012


On Wed, Jun 13, 2012 at 1:19 PM, Sébastien Villemot
<sebastien.villemot at ens.fr> wrote:
> Thomas Weber <tweber at debian.org> writes:
>
>> am I the only one having problems like the following (gnuplot-x11 is
>> installed):
>>
>> ==============================================================================
>> octave:1> x =linspace(-10,10,100);
>> octave:2> plot(x,sin(x))
>>
>> gnuplot> set grid linewidth 0,500000, linewidth 0,500000;
>>          line 0: ';' expected
>> warning: division by zero
>>          line 0: undefined variable: Inf
>>          line 0: undefined variable: Inf
>>          line 0: undefined variable: Inf
>>
>> gnuplot> set style line 1 linecolor rgb "#0000ff" linetype 1 linewidth 0,500000;
>>          line 0: Extraneous arguments to set style line
>>
>> gnuplot> set style line 2 linecolor rgb "#0000ff" pointsize 2,000000;
>>          line 0: Extraneous arguments to set style line
>>
>> gnuplot> set xrange [-1,000000000000000e+01:1,000000000000000e+01] noreverse;
>>          line 0: ':' or keyword 'to' expected
>>
>> gnuplot> set yrange [-1,000000000000000e+00:1,000000000000000e+00] noreverse;
>>          line 0: ':' or keyword 'to' expected
>>
>> gnuplot> set border lw 0,500000;
>>          line 0: invalid expression
>> ==============================================================================
>>
>> The plot looks fine, but the above is printed on the Octave prompt.
>
> In my sid chroot, with gnuplot-x11 installed, the plot is fine and I
> don't have these gnuplot messages.

Hi, just a guess but the number format looks like a different locale
(from mine at least).  I tried your example under a couple different
locales on my system but I still don't see these error messages.

Three things to check:

1. What is your locale configuration?

2. If you set LC_ALL=C in your environment do the errors go away?

3. If you run octave with --norc do the errors go away?

-- 
mike



More information about the Pkg-octave-devel mailing list