I have found some problems in my code for certain ratios between the minimum
and maximum values of both function. This is hopefully fixed now:
--
Sent from:
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users
JLan wrote
> Using the [a1 a2] handles afterwards was not quite successful for me.
This worked fine for me:
[a1,a2]=plotyy(t,uL2,i3)
legend(a1,"uL2",2);
legend(a2,"i3",1);
ylabel(a1,'Spannung, u in V','fontsize',3);
xlabel(a2,'Zeit, t in s','fontsize',3);
ylabel(a1,'Strom, i in A','fontsize',3);
I have extended the given example in a way that the left and right y axis get
some kind of intelligent equal scaling, so that a joined grid for both axes
would fit. If one of the axes includes the value of y = 0, both axes will
also share the same "base line".
Here is the function:
// Function fo