[Scilab-users] A question about plotting
徐湛
xzf16 at 163.com
Mon Aug 18 04:15:18 CEST 2014
Hi , All:
I have a question about plotting.
I want to plot 2 lines in a graphic , so I type the command as below:
-->x=linspace(0,2*%pi,40);
-->y1=sin(x)
-->y2=cos(x);
-->X=[x,x];
-->Y=[y1,y2];
Then , I type the plot command :
-->plot(x,y1,x,y2);
The result is shown as below:
But when I type a command as below:
-->plot(X,Y);
The result is :
It has an additional line.
Why will this line appear?
Thanks for your reply.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140818/b5f7ec39/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 13383 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140818/b5f7ec39/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 11917 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140818/b5f7ec39/attachment-0001.jpg>
More information about the users
mailing list