[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: errorbar plot won't work
From: |
Henry F. Mollet |
Subject: |
Re: errorbar plot won't work |
Date: |
Mon, 30 Jul 2007 13:35:02 -0700 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
octave-2.9.13:7> xx=[1,2,3,4];
octave-2.9.13:8> yy=[10,11,12,13];
octave-2.9.13:9> ey=[1,1.5,2,2.5];
octave-2.9.13:11> errorbar (xx,yy,ey,'~')
Worked for me. To be able to see all four data points I had to then use
octave-2.9.13:14> axis( [0,5,5,20])
and the errorbar plot was redrawn with the new axis scales.
On my eMac using gnuplot-4.2.0/AquaTerm the data points were drawn with blue
+ and the errorbar with blue - and connecting blue line. As expected except
for blue color.
Henry
on 7/30/07 11:08 AM, address@hidden at address@hidden wrote:
> Dear Mr. Eaton,
> I re-compiled the recent version 2.9.13 but the problem was not fixed. This
> time I ran the same code, the terminal was redirected to gnuplot and a lot
> of error messages happened like this:
>
> gnuplot> plot "-" using ($1):($2):($3):($4) title "" with yerrorbars
> linestyle 1 lw 0.500000 ;
>
> ^
> line 10: duplicated or contradicting arguments in plot options
>
>
> gnuplot> 1 2 1.9 2.1
> ^
> line 10: invalid command
>
>
> gnuplot> 2 4 3.9 4.1
> ^
> line 10: invalid command
>
>
> gnuplot> 3 6 5.9 6.1
> ^
> line 10: invalid command
>
>
> gnuplot> 4 9 8.9 9.1
> ^
> line 10: invalid command
>
>
> gnuplot> e
> ^
> line 10: invalid command
>
>
> I believe the problem is not the same as version 2.9.12. I'm using gnuplot
> 4.0 and I don't think there's anything wrong with it.
>
> Still I'm trying to make it. Thank you all the same.
>
> Cong.
>
>
>
> On 7/31/07, John W. Eaton <address@hidden> wrote:
>>
>> On 31-Jul-2007, address@hidden wrote:
>>
>> | Dear all:
>> |
>> | I tried the following code:
>> |
>> | xx=[some data];
>> | yy=[some more data];
>> | ey=[even more data];
>> | errorbar(xx, yy, ey, '~')
>> |
>> | Here xx, yy and ey are consistent in dimensions. But it won't work out.
>> | Here's the error info:
>> |
>> | error: __errplot__: unrecognized format character: `~'
>> | error: evaluating if command near line 103, column 2
>> | error: evaluating if command near line 55, column 7
>> | error: evaluating if command near line 49, column 5
>> | error: evaluating while command near line 48, column 3
>> | error: called from `__pltopt1__' in file
>> | `/usr/local/share/octave/2.9.12/m/plot/__pltopt1__.m'
>> | error: evaluating for command near line 110, column 5
>> | error: evaluating if command near line 96, column 3
>> | error: called from `__pltopt__' in file
>> | `/usr/local/share/octave/2.9.12/m/plot/__pltopt__.m'
>> | error: called from `__errplot__' in file
>> | `/usr/local/share/octave/2.9.12/m/plot/__errplot__.m'
>> | error: evaluating assignment expression near line 57, column 16
>> | error: evaluating if command near line 56, column 7
>> | error: evaluating while command near line 54, column 5
>> | error: evaluating while command near line 42, column 3
>> | error: called from `__errcomm__' in file
>> | `/usr/local/share/octave/2.9.12/m/plot/__errcomm__.m'
>> | error: called from `errorbar' in file
>> | `/usr/local/share/octave/2.9.12/m/plot/errorbar.m'
>> |
>> | I can't figure why "~" is not recognized as a format character! It's the
>> | default one!
>>
>> This problem seems to be fixed in 2.9.13.
>>
>> jwe
>>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave