[Scilab-users] plot2d3()

Federico Miyara fmiyara at fceia.unr.edu.ar
Mon May 3 03:40:13 CEST 2021


Christophe:

Thank you for making me aware of xpolys(), a new addition to my bag of 
tools.

A good alternative workaround.

Regards,

Federico Miyara



On 26/04/2021 04:42, Dang Ngoc Chan, Christophe wrote:
> Hello,
>
>> De : fmiyara
>> I'm trying to get a plot like this:
> [...]
>
> Maybe you should try with xpolys(), e.g.
>
> ----------
>
> [n, ybase] = (10, -12);
>
> y = ybase + 9*grand(1,n,"def");
>
> x=1:n;
>
> Y=[y ; ybase*ones(y)];
>
> X=[x ; x]
>
> scf(0);
>
> clf();
>
> xpolys(X, Y, ones(y));
>
> plot(x, y, "o");
>
> gcf().children.data_bounds(1, 2) = ybase;
>
> ----------
>
> But it mays have some drawbacks.
>
> HTH
>
>
> --
> Christophe Dang Ngoc Chan
> Mechanical calculation engineer
>
>
> General
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>



-- 
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210502/17b24d82/attachment.htm>


More information about the users mailing list