summaryrefslogtreecommitdiffstats
path: root/scilab/modules/graphics/tests/nonreg_tests/bug_6665.dia.ref
blob: 92c1d2551c6f5cd65b8f8b16d62001da4f844d88 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2006-2008 - INRIA - Serge.Steer@inria.fr
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- TEST WITH GRAPHIC -->
// <-- Non-regression test for bug 6665 -->
//
// <-- Bugzilla URL -->
// http://bugzilla.scilab.org/show_bug.cgi?id=6665
//
// <-- Short Description -->
//legend (caption) nor properly saved or loaded
plot2d()
legend(['a';'b';'c'])
 ans  =
 
Handle of type "Legend" with properties:
========================================
parent: Axes
children: []
visible = "on"
text = ["a";"b";"c"]
font_style = 6
font_size = 1
font_color = -1
fractional_font = "off"
links = ["Polyline";"Polyline";"Polyline"]
legend_location = "in_upper_right"
position = [0.7491013,0.1332972]
line_mode = "on"
thickness = 1
foreground = -1
fill_mode = "on"
background = -2
clip_state = "off"
clip_box = []
user_data = []
f=gcf()
 f  =
 
Handle of type "Figure" with properties:
========================================
children: "Axes"
figure_position = [200,200]
figure_size = [624,596]
axes_size = [612,461]
auto_resize = "on"
viewport = [0,0]
figure_name = "Figure n°%d"
figure_id = 0
info_message = ""
color_map= matrix 32x3
pixmap = "off"
pixel_drawing_mode = "copy"
anti_aliasing = "off"
immediate_drawing = "on"
background =  -2
visible = "on"
rotation_style = "unary"
event_handler = ""
event_handler_enable = "off"
user_data = []
tag = ""
save(TMPDIR+'/foo.scg',f)
clf()
load(TMPDIR+'/foo.scg')
if f.children.children(1).type<>'Legend' then bugmes();quit;end
l=f.children.children(1)
 l  =
 
Handle of type "Legend" with properties:
========================================
parent: Axes
children: []
visible = "on"
text = ["a";"b";"c"]
font_style = 6
font_size = 1
font_color = -1
fractional_font = "off"
links = ["Polyline";"Polyline";"Polyline"]
legend_location = "in_upper_right"
position = [0.7491013,0.1332972]
line_mode = "on"
thickness = 1
foreground = -1
fill_mode = "on"
background = -2
clip_state = "off"
clip_box = []
user_data = []
if or(l.text<>['a';'b';'c']) then bugmes();quit;end