From: Wes on
what's wrong with my last line? It doesn't change y scale.
===========
x = [1 2];
y = [2 3];
h1 = errorbar(x,y)
set(h1,'ylim',[0 10])
============
Thanks
From: dpb on
Wes wrote:
> what's wrong with my last line? It doesn't change y scale.
> ===========
> x = [1 2];
> y = [2 3];
> h1 = errorbar(x,y)
> set(h1,'ylim',[0 10])
> ============
> Thanks

From errorbar help...

" H = ERRORBAR(...) returns a vector of line handles."

You need the axis handle...see

help gca

--
From: Walter Roberson on
dpb wrote:
> Wes wrote:
>> what's wrong with my last line? It doesn't change y scale.
>> ===========
>> x = [1 2];
>> y = [2 3];
>> h1 = errorbar(x,y)
>> set(h1,'ylim',[0 10])
>> ============
>> Thanks
>
> From errorbar help...
>
> " H = ERRORBAR(...) returns a vector of line handles."

Looks like now it returns a vector of errorbarseries handles

> You need the axis handle...see

Yep, I agree.