summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1602.sci
blob: 03f30ff437ddfd3f4d974d693dcc70003291d25a (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
// <-- Non-regression test for bug 1602 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1602
//
// <-- Short Description -->
//    contour2d don't work well with frameflag=4 (while the workaround
//    which consists of providing frameflag=3 + rect=[xmin,ymin,xmax,ymax]
//    works). This is with a cvs version of yesterday. See an example
//    in steps to ...
//
//     Bruno

// Copyright INRIA
// Scilab Project - Jean-Baptiste Silvy
// Copyright INRIA 2006
// Date : 11 janvier 2006

clf();

x = linspace(-0.95,0.95,80);
z = x'*x;  // z(x,y) = x*y in fact
clf()
contour2d(x,x,z,8,frameflag=4);
a = gca();

data_boundsRef = [ -0.95, -0.95 ; 0.95, 0.95 ] ;

// check that xfarc fill the arc and don't draw the limit
if ( a.data_bounds == data_boundsRef ) then
  affich_result(%T,1602);
else
  affich_result(%F,1602);
end