[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plot 2 array in different axis and price
From: |
mmuetzel |
Subject: |
Re: plot 2 array in different axis and price |
Date: |
Sun, 23 Sep 2018 08:10:44 -0500 (CDT) |
Please, read the documentation of plotyy: Its first output argument is a
vector with handles to the two axes. You can use those to change properties
of the two axes separately:
x = 0:0.1:2*pi;
y1 = sin (x);
y2 = exp (x - 1);
ax = plotyy (x, y1, x - 1, y2);
set(ax(2))
set(ax(2), "ydir", "reverse");
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html