Doule y axis with plot

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

Doule y axis with plot

gigiolone123
This post was updated on .
hi
it's possible to set double axis with plot?

example:
hold on
plot(x,Y)
plot(x,Z);
hold off


i want this :

https://gyazo.com/898a51485b74b3840710bdf43aeabd31



Reply | Threaded
Open this post in threaded view
|

Re: Doule y axis with plot

marco atzeri-2
Am 03.11.2018 um 12:23 schrieb gigiolone123:

> hi
> i't possible to set double axis with plot?
>
> (it's possibile whith plotyy but i don't know if i can to do it with plo)
>
>
> i want this :
>
> https://gyazo.com/898a51485b74b3840710bdf43aeabd31
>

yon need to use plotyy

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr├╝ft.
https://www.avast.com/antivirus



Reply | Threaded
Open this post in threaded view
|

Re: Doule y axis with plot

gigiolone123
thank you for answer..

to use plotyy i find 2 problem:

1)i can't modify axis :

set (gca, 'yaxislocation', 'right', 'XTick',ANM, 'xticklabel',ABD);

(it give me error)

2)i can't to change linecolor  (both)



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


Reply | Threaded
Open this post in threaded view
|

Re: Doule y axis with plot

mmuetzel
Read the documentation for plotyy:
The return value ax is a vector with the axes handles of the two y-axes. h1
and h2 are handles to the objects generated by the plot commands.



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