plot 2 array in different axis and price

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

plot 2 array in different axis and price

shivax
hi,
look that:

https://gyazo.com/745013f8ea1079604de004cb9eca8e11

i need to plot 2 curve as pics..

it's possible?




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


Reply | Threaded
Open this post in threaded view
|

Re: plot 2 array in different axis and price

Pantxo
shivax wrote

> hi,
> look that:
>
> https://gyazo.com/745013f8ea1079604de004cb9eca8e11
>
> i need to plot 2 curve as pics..
>
> it's possible?
>
>
>
>
> --
> Sent from:
> http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

Hi,

You'll need to use the "plotyy". See "demo plotyy".

Pantxo



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


Reply | Threaded
Open this post in threaded view
|

Re: plot 2 array in different axis and price

PhilipNienhuis
In reply to this post by shivax
shivax wrote
> hi,
> look that:
>
> https://gyazo.com/745013f8ea1079604de004cb9eca8e11
>
> i need to plot 2 curve as pics..
>
> it's possible?

help plotyy

Philip



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


Reply | Threaded
Open this post in threaded view
|

Re: plot 2 array in different axis and price

shivax
This post was updated on .
it's possible to change y range??

i try to use axis but it don't run





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


Reply | Threaded
Open this post in threaded view
|

Re: plot 2 array in different axis and price

mmuetzel
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