[Scilab-users] A question about plotting

Samuel Gougeon sgougeon at free.fr
Mon Aug 18 11:20:44 CEST 2014


Hello,

Your same questions posted on 2014-08-02 were answered two days latter, 
here:
http://mailinglists.scilab.org/Scilab-users-A-question-about-plotting-tp4031000p4031001.html

Samuel

Le 18/08/2014 04:15, ?? a écrit :
>
> 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:
>
> Graphic window number 0 (2).bmp
>
> But when I type a command as below:
>
> -->plot(X,Y);
>
> The result is :
>
> Graphic window number 0.bmp
>
> It  has an additional line.
>
> Why will this line appear?
>
> Thanks for your reply.
>
>
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140818/b102dac1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 13383 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140818/b102dac1/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 11917 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140818/b102dac1/attachment-0001.jpe>


More information about the users mailing list