[Scilab-users] question to surf()

P M p.muehlmann at gmail.com
Tue Jan 4 14:29:45 CET 2022


...indeed..no problems with Scilab 6.1.1
Thank you,
Philipp


Am Di., 4. Jan. 2022 um 12:22 Uhr schrieb Heinz Nabielek <
heinznabielek at me.com>:

> SurfPlot is no problem here.
> Scilab Version: 6.1.1.988271013
> macOS Catalina Version 10.15.7
> Heinz
>
>
>
>
> On 04.01.2022, at 09:29, P M <p.muehlmann at gmail.com> wrote:
>
> width = 900;
> height = 1500;
>
>
>
> x = linspace(1,width,width)
> y = linspace(1,height, height);
>
>
>
> for i = 1:width
>
>
> for j = 1:height
>
>
> z(i,j) = x(i)+y(j)
>
>
> end
> end
>
>
>
> //// normalization if necessary
> //zMin = min(z);
> //z = z - zMin;
> //zMax = max(z);
> //z = z .* 255 ./ zMax;
>
>
>
> f = figure();
> f.background = 256;
> f.color_map  = hotcolormap(256);
> surf(x,y,z');
> e = gce();
> e.thickness = 0
> printf("Reached end of code\n");
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20220104/34f11f6b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 51979 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20220104/34f11f6b/attachment.png>


More information about the users mailing list