help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plotyy with reversed right axis not showing data for right axis


From: Pantxo
Subject: Re: Plotyy with reversed right axis not showing data for right axis
Date: Fri, 10 May 2019 11:24:37 -0500 (CDT)

Gabino wrote
> After revisiting this problem, I realized that 'reverse' axis are not yet
> implemented in Octave, even though 'ydir' is referenced in the manual
> ($%#?):
> 
> ax=bar(rand(1,3));
> set(ax, "ydir","reverse")
> 
> yields ..."unknown hggroup property ydir" or "unknown property ydir".
> 
> 
> 
> --
> Sent from:
> http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

What you call "ax" in your example is not an axes (see "doc bar") but an
hggroup object containing the primitives used toi draw the bars. Try with a
proper axes object and it will work:

bar (rand(1,3));
set(gca, "ydir","reverse")

Pantxo
 



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]