[prev in list] [next in list] [prev in thread] [next in thread] 

List:       scilab-users
Subject:    Re: [Scilab-users] A question about plotting
From:       Samuel Gougeon <sgougeon () free ! fr>
Date:       2014-08-18 9:20:44
Message-ID: 53F1C56C.7050801 () free ! fr
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


[Attachment #5 (multipart/related)]

[Attachment #7 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      Your same questions posted on 2014-08-02 were answered two days
      latter, here:<br>
<a class="moz-txt-link-freetext" \
href="http://mailinglists.scilab.org/Scilab-users-A-question-about-plotting-tp4031000p \
4031001.html">http://mailinglists.scilab.org/Scilab-users-A-question-about-plotting-tp4031000p4031001.html</a><br>
  <br>
      Samuel<br>
      <br>
      Le 18/08/2014 04:15, &#24464;&#28251; a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
      cite="mid:4f34f6aa.a2fe.147e6e5b02a.Coremail.xzf16@163.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br>
        <span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"><o:p></o:p></span>
  <div id="isForwardContent">
          <div class="WordSection1">
            <div>
              <div style="border:none;border-top:solid #B5C4DF
                1.0pt;padding:3.0pt 0cm 0cm 0cm">
              </div>
            </div>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">Hi , All:<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">I have a question about plotting.<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">I want to plot 2 lines in a graphic ,
              so I type the command as below:<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">--&gt;x=linspace(0,2*%pi,40);<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">--&gt;y1=sin(x)<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal"><span \
                lang="ES-MX">--&gt;y2=cos(x);<o:p></o:p></span></p>
            <p class="MsoNormal"><span lang="ES-MX"><o:p>&nbsp;</o:p></span></p>
            <p class="MsoNormal"><span \
                lang="ES-MX">--&gt;X=[x,x];<o:p></o:p></span></p>
            <p class="MsoNormal"><span lang="ES-MX"><o:p>&nbsp;</o:p></span></p>
            <p class="MsoNormal"><span \
                lang="ES-MX">--&gt;Y=[y1,y2];<o:p></o:p></span></p>
            <p class="MsoNormal"><span lang="ES-MX"><o:p>&nbsp;</o:p></span></p>
            <p class="MsoNormal">Then , I type the plot command :<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">--&gt;plot(x,y1,x,y2);&nbsp;&nbsp; <o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">The result is shown as below:<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal"><img id="Picture_x0020_0"
                src="cid:part1.01040902.07090101@free.fr" alt="Graphic
                window number 0 (2).bmp" width="762" height="369"><o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">But when I type a command as below:<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">--&gt;plot(X,Y);<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">The result is :<o:p></o:p></p>
            <p class="MsoNormal"><img id="Picture_x0020_1"
                src="cid:part2.00000405.01060608@free.fr" alt="Graphic
                window number 0.bmp" width="682" height="330"><o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">It&nbsp; has an additional line.<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">Why will this line appear?<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal">Thanks for your reply.<o:p></o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
          </div>
        </div>
      </div>
      <br>
      <br>
      <span title="neteasefooter"><span id="netease_mail_footer"></span></span><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:users@lists.scilab.org">users@lists.scilab.org</a> <a \
class="moz-txt-link-freetext" \
href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
 </pre>
    </blockquote>
    <br>
  </body>
</html>


[Attachment #8 (image/jpeg)]
[Attachment #9 (image/jpeg)]

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic