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
e high number of input arguments if there are more flexible
solutions.
--
View this message in context:
http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-tp4025895p4036078.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
_
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
Hello,
Thanks for sharing.
Just a general comment:
> De : mathias_magdowski
> Envoyé : mardi 28 mars 2017 09:52
>
> while 1
>if distance>10 then
> [...]
>elseif distance<1 then
>[... ]
>else
>// exit loop
>break;
>end
> end
I can admit
/ Output:
> // a1, a2 - axes -> handle
> function [a1,a2]=plotyy(x,y1,y2)
> // example for a diagram with two y axes
> // see:
> https://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg
> // and:
> http://mailinglists.scilab.org/Scilab-us
for a diagram with two y axes
// see:
https://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg
// and:
http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-td4025895.html
// generation of the right y axis
a1=newaxes();
a1.tight_l
://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-tp4025895p4034490.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
Hello,
Suppose I have two plots on the same graph,
one is to use the left Y-axis,
while the second is to use the right Y-axis.
How should I handle it with gca() or any other command?
You might have a look at
http://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg
Thanks, Spougeon.
This has partly solved the problem. Suppose I have two plots on the same
graph, one is to use the left Y-axis, while the second is to use the right
Y-axis. How should I handle it with gca() or any other command?
Samuel Ogbonna Enibe
University of Nigeria, Nsukka, Nigeria
On
http://help.scilab.org/docs/5.4.0/en_US/drawaxis.html
/Stefan
On 2013-02-23 22:19, Samuel Enibe wrote:
Thanks, Spougeon.
This has partly solved the problem. Suppose I have two plots on the same
graph, one is to use the left Y-axis, while the second is to use the
right Y-axis. How should I
Hi Samuel.
you can have different y_tick.labels on the left and right y axes and
multiply the y-data of the line with the right y axis with a factor. In
your case the left y axis could have y_tick.labels from -1 to +1 and the
right y axis from -2 to +2. But because both lines are drawn in the
Dear Sir,
Could you please let me know the SCILAB command to use in making a plot on
the SECOND (right) Y axis.
Thank you very much.
--
Samuel Ogbonna Enibe
University of Nigeria, Nsukka, Nigeria
Tel: +2348063646798
Email: samuel.en...@unn.edu.ng
enibe...@yahoo.com
Hello,
according to your needs, you may do either:
plot2d()
ax = gca();
ax.y_location = 'right';
or
demo_gui() // then Graphics = 2D 3D = plotyy | plotyyy
// and look at the code, using
help newaxes // http://help.scilab.org/docs/5.4.0/en_US/newaxes.html
Regards
Samuel
13 matches
Mail list logo