<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<font face="Courier New, Courier, monospace">Thank you, I'm glad to
help a little bit improve this great software.<br>
<br>
Regards,<br>
<br>
Federico Miyara<br>
</font><br>
<div class="moz-cite-prefix">On 02/02/2019 17:29, Samuel Gougeon
wrote:<br>
</div>
<blockquote cite="mid:4f9c5ad4-0153-95ad-776e-003032a753fa@free.fr"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hello Federico,<br>
<br>
Thanks for pointing this issue.<br>
It is clearly a bug. It occurs since the earliest ages of
Scilab.<br>
It will be fixed ASAP.<br>
<br>
Regards<br>
Samuel<br>
<br>
Le 02/02/2019 à 09:42, Federico Miyara a écrit :<br>
</div>
<blockquote cite="mid:5C5557F0.8040007@fceia.unr.edu.ar"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<br>
<font face="Courier New, Courier, monospace">Dear all,<br>
<br>
I know it is better to use plot2d, but I wonder why plot works
differently from plot2d when one of the variables is integer.<br>
<br>
Consider this code<br>
<br>
// Generate x axis with real (double) numbers<br>
x = (1:20)/20<br>
<br>
// Generate y axis with random integers<br>
y = iconvert(100*rand(1,20),2)<br>
<br>
// Plot y vs x<br>
plot(x, y)<br>
<br>
The plot represents x vs its index, which is not the intended
behavior. Replacing plot(x,y) with plot2d(x,y) we get the
correct plot.<br>
<br>
The documentation of both plot and plot2d requires "real"
matrix or vector. It seems that plot takes it a bit too
literally (as a data type) while plot2d adheres to the
mathematical meaning of "real" (considering integer numbers as
a subset of real numbers).<br>
<br>
Is there a fundamental reason for this?<br>
<br>
The problem arises when one retrieves integers from a file
without converting them to double (which requires much more
memory).<br>
<br>
Regards,<br>
<br>
Federico Miyara<br>
<br>
</font>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
<tbody>
<tr>
<td style="width: 55px; padding-top: 18px;"><a
moz-do-not-send="true"
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
target="_blank"><img moz-do-not-send="true"
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
alt="" style="width: 46px; height: 29px;"
height="29" width="46"></a></td>
<td style="width: 470px; padding-top: 17px; color:
#41424e; font-size: 13px; font-family: Arial,
Helvetica, sans-serif; line-height: 18px;">Libre de
virus. <a moz-do-not-send="true"
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
target="_blank" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</tbody>
</table>
<a moz-do-not-send="true"
href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1"
height="1"> </a></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<p><br>
</p>
<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>