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 12:24:19 -0500 (CDT)

Gabino wrote
> Thanks for your response Pantxo.  You are right, thanks for the
> correction.
> 
> but for the original problem, [hax,h1,h2]=plotyy(x1,y1,x2,y2),  isn't hax
> a
> proper axes object ? because it does assign other axes properties [color,
> ylim, and ticks] but it doesn't show the data.
> 
> set (hax(2),"ydir","reverse",'ycolor',[0.1 0.1 0.1],'ylim',[0
> 200],'ytick',[0:40:200]).
> 
> G.
> 
> 
> 
> --
> Sent from:
> http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

Indeed, plotyy returns the axes handles which you should be able to use in
order to reverse the direction. I cannot try with your actual test case
(don'tt have the data) but the following simple example works as expected:

x = 1:.1:10;
y1 = sin(x);
y2 = y1;
hax = plotyy (x,y1,x,y2);
set (hax(2), "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]