mathias_magdowski wrote > I have extended the given example.. Good, although it can get a bit messed up when using the "reframe to contents" button.
Using the [a1 a2] handles afterwards was not quite successful for me. What about adding some optional labels in the function? function [a1,a2]=plotyyl(x,y1,y2,t,x_l,y1_l,y2_l) if ~exists("t") t=""; end if ~exists("x_l") x_l="X"; end if ~exists("y1_l") y1_l="Y1"; end if ~exists("y2_l") y2_l="Y2"; end .... .... // plot of the first function plot(x,y1); gca().title.text=t; gca().y_label.font_foreground=2; gca().y_label.text=y1_l; .... .... // plot of the second function plot(x,y2,"r"); gca().y_label.font_foreground=5; gca().y_label.text=y2_l; gca().x_label.text=x_l; .... J -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-tp4025895p4036077.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users