summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug487.sci
blob: 08ab7a9c5620778ae42d97000b8f8cabfeac5fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// <-- Non-regression test for bug 487 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=487
//
// <-- Short Description -->
//    Bug Report Id: 12195200378121313
//      According to the manual of "contour2d" a vector instead of a scalar should also be possible for the level values of the contourplot. But scilab-2.7 gives me an error.
//
//    I must admit that I am not an experienced user concerning scilab. Maybe I have someting overseen, but I don't known what.
//
//    Could you please help me?
//
//    On Scilab 2.7 with " contour2d " function
//    The Error Messages are:
//       !--error   204 
//    Argument   2, wrong type argument: expecting a scalar
//    at line       3 of function contour2d                called by :  
//        contour2d(rhogit,zgit,Jv, lvl, strf="041");
//
//    Commands: lvl in contour2d is a vector
//
//    lvl= -0.0003 + (1:10)*(0.0003-(-0.0003))/(10+1)
//
//
//    Kappen on Linux version 2.4 distribution Debian woody with  gnome1.4 Sawfish as window manager
// ...

lvl= -0.0003 + (1:10)*(0.0003-(-0.0003))/(10+1)
result=execstr("contour2d(1:10,1:10,rand(10,10),lvl,rect=[0,0,11,11])","errcatch","n")  
xdel()

if result==0 then
	affich_result(%T,487);
else
	affich_result(%F,487);
end