x errorbars

John W. Eaton jwe at bevo.che.wisc.edu
Tue Apr 8 14:59:00 CDT 2008


On  7-Apr-2008, Claudio Belotti wrote:

| To: bug at octave.org
| Cc: bel8
| Subject: x errorbar
| 
| Bug report for Octave 3.0.0 configured for x86_64-pc-linux-gnu
| 
| Description:
| -----------
| 
| I'm not able to get a plot with x-errorbars
| 
| Repeat-By:
| ---------
| X = 1:10;
| Y = 1:10;
| EX = rand(10,1);
| errorbar(X,Y,EX,'>')
| 
| produces y-errorbars
| 
| Fix:
| ---
| 
| I found a work-around this way
| errorbar(X,Y,zeros(size(Y)),EX/2,EX/2,'>')
| or this way
| errorbar (X,Y,EX,zeros(size(Y)),'~>'
| 
|   * If possible, replace this item with a description of how to
|     fix the problem (if you don't have a fix for the problem, don't
|     include this section, but please do submit your report anyway).

If someone would like to work on this problem, I'd suggest introducing
an xerrorbar function instead of trying to make errorbar do it.

The special format strings for the errorbar function are likely to be
eliminated in the future as they are not Matlab compatible.

Longer term, the errorbar function will need to be fixed to generated
an errorbarseries object, but that can't happen until we have the
necessary infrastructure to implement the errobarseries object.

jwe


More information about the Bug-octave mailing list