summaryrefslogtreecommitdiff
path: root/modules/graphics/tests/unit_tests/grayplot.dia.ref
blob: a550464a001ce5d7149f72b3cedb8986ed98dfd8 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2011 - DIGITEO - Bruno JOFRET
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- TEST WITH GRAPHIC -->
// test matplot object
// Check each default property
x = -10:10;
y = -10:10;
z = rand(21,21);
grayplot(x,y,z);
e = gce();
assert_checkequal(e.type, "Grayplot")
 ans  =
 
  T  
assert_checkequal(e.parent.type, "Axes")
 ans  =
 
  T  
assert_checkequal(e.children, [])
 ans  =
 
  T  
assert_checkequal(e.visible, "on")
 ans  =
 
  T  
assert_checkequal(e.data.x, x')
 ans  =
 
  T  
assert_checkequal(e.data.y, y')
 ans  =
 
  T  
assert_checkequal(e.data.z, z)
 ans  =
 
  T  
assert_checkequal(e.data_mapping, "scaled")
 ans  =
 
  T  
assert_checkequal(e.clip_state, "clipgrf")
 ans  =
 
  T  
assert_checkequal(e.clip_box, [])
 ans  =
 
  T  
assert_checkequal(e.user_data, [])
 ans  =
 
  T